-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] Error EACCES -13 when using npm globally #1001
Comments
Given that you're using nvm, that suggests that the permissions aren't right on |
I believe so. |
Hmm, that checks ownership; what about |
Only two seem to not be writable: $ find "$NVM_DIR" ! -writable
/home/mithic/.nvm/.git/objects/pack/pack-c69cf0d0b58b9bd8c5b179abd3da49e09356afe5.idx
/home/mithic/.nvm/.git/objects/pack/pack-c69cf0d0b58b9bd8c5b179abd3da49e09356afe5.pack should I change the permissions on them? |
nah, that's inside the nvm git repo, and wouldn't be related to this problem. If you cd into |
Yes, I own and have write permission for all of them. |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
1 similar comment
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
What / Why
I get an EACCES -13 error sometimes (more below) when using npm globally
When
Whenever I run one of the following:
npm -g upgrade
npm -g install npm
Where
npm v6.13.4 on node v12.16.1, installed with nvm, using Ubuntu 18.04.4 with WSL.
How
Current Behavior
Running either
npm -g upgrade
ornpm -g install npm
gives the following error:Steps to Reproduce
Run
npm -g upgrade
ornpm -g install npm
Expected Behavior
npm -g upgrade
should attempt to update all globally installed packages to the latest version.npm -g install npm
should attempt to install the latest version of npmThe text was updated successfully, but these errors were encountered: