Open sanathkr opened 7 years ago
See https://github.com/awslabs/aws-sam-local/issues/66
If you had installed npm using sudo, then the bin directories where go-npm tries to install the binaries are owned by root. We get EACCESS when trying to move the file from ./bin to npm bin directory.
npm
go-npm
./bin
npm bin
Catch the error and provide helpful instructions. Link to https://docs.npmjs.com/getting-started/fixing-npm-permissions
@sanathkr https://docs.npmjs.com/getting-started/fixing-npm-permissions doesn't help. any suggestions?
See https://github.com/awslabs/aws-sam-local/issues/66
If you had installed
npm
using sudo, then the bin directories wherego-npm
tries to install the binaries are owned by root. We get EACCESS when trying to move the file from./bin
tonpm bin
directory.Catch the error and provide helpful instructions. Link to https://docs.npmjs.com/getting-started/fixing-npm-permissions