-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
cp... permission denied
errors for /usr/local/lib/node_modules/npm
#478
Comments
The default install location on OS X is to a system folder where a normal user does not have write permissions by default. You can strike the same sort of issue when using npm to install global modules. You have three main options:
I prefer option 2 myself. Some relevant links: |
Interesting, @JohnRGee. I'd set Thanks! |
I opened a PR to expand the permission coverage in the README based on the above comment: #790 |
Describe issue...
On OSX 10.13.1, with n 2.1.7 and base node 9.2.0, when I run
n [version]
, I get a list ofcp
errors for the entirety of thenpm
directory.The new node version is implemented, though the npm version remains at 5.5.1.
Steps to reproduce issue...
Describe the results you expected
Ideally, I always want the most recent version of npm that supports the version of node selected. That said, I mostly just want to stop the errors from appearing.
The text was updated successfully, but these errors were encountered: