When Node.js libraries cannot open files on the local disk, the file does not exist at the specified location, or the file or folder permission are not correct.
To check the permission of the file see Get the octal file permission number of a file or directory
If you get the error message related to the AWS credential and config files,
Error: EACCES: permission denied, open ‘/Users/…/.aws/config’ or
Error: EACCES: permission denied, open ‘/Users/…/.aws/credentials’
- Set the permission of the AWS config and credentials files to 744
sudo chmod 744 /Users/$USER/.aws/config sudo chmod 744 /Users/$USER/.aws/credentials