-
Notifications
You must be signed in to change notification settings - Fork 100
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
npm upgrade destroyed npm #1344
Comments
I have since closed that terminal window (dumb, I know) so I can't share the errors that were thrown. They all mostly looked like access/permissions errors. I haven't had any problems with npm in the past. |
I found this: Apparently that one npm install requires to be run via sudo. I've installed tons of other npm modules globally without sudo, but I guess from now on I'll always use sudo. |
I did reinstall node and then I was able to successfully upgrade npm by using sudo. |
In my experience, any global (i.e. "-g") install needs escalated privileges. |
You should never upgrade npm by running |
I just tried to upgrade to the latest npm by doing:
npm install npm -g
And that threw a bunch of errors, and now npm is busted.
Do I need to reinstall node?
The text was updated successfully, but these errors were encountered: