Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helpful messaging when sudo npm install fails #2

Open
sanathkr opened this issue Aug 23, 2017 · 1 comment
Open

Add helpful messaging when sudo npm install fails #2

sanathkr opened this issue Aug 23, 2017 · 1 comment

Comments

@sanathkr
Copy link
Owner

See aws/aws-sam-cli#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.

Catch the error and provide helpful instructions. Link to https://docs.npmjs.com/getting-started/fixing-npm-permissions

@dm-grinko
Copy link

@sanathkr https://docs.npmjs.com/getting-started/fixing-npm-permissions doesn't help. any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants