You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a section about Uninstall existing npm, but the recommendations for upgrading are scattered in the issues.
The relationship between node, npm and nvm is not clear and it's not obvious if upgrading npm should be done through nvm or at least in a way that doesn't break nvm.
The text was updated successfully, but these errors were encountered:
This is more of a "how Node works" type of thing, but your point is well taken. I do think clarifying language around this concept would be a valuable addition.
Go to Node.js install directory (C:\Program Files\nodejs in my case)
Rename the following files:
npm → npm-old
npm.cmd → npm-old.cmd
npx → npx-old
npx.cmd → npx-old.cmd
Run npm-old install -g npm@latest
Delete the files I renamed in step 2. (Step 3 should have created new files named npm, npm.cmd, etc.)
I am running Windows 10 Enterprise v1903 (build 18362.904) and nvm-windows 1.1.7
Edit: This is similar (but not quite equal to) of the techniques discovered by @rsshilli on StackOverflow, which was improved upon in #300 (comment) and #300 (comment). We keep reinventing the wheel in slightly different ways.
There's a section about Uninstall existing npm, but the recommendations for upgrading are scattered in the issues.
The relationship between
node
,npm
andnvm
is not clear and it's not obvious if upgradingnpm
should be done throughnvm
or at least in a way that doesn't breaknvm
.The text was updated successfully, but these errors were encountered: