Open
Description
What / Why
Option 2 of "upgrade npm on windows" made windows not recognize npm as a command
https://docs.npmjs.com/try-the-latest-stable-version-of-npm
How
I deleted npm and npm.cmd from nodejs/, and even though C:\Users\<username>\AppData\Roaming\npm
is still listed in the path and npm config get prefix -g
did return C:\Users\<username>\AppData\Roaming\npm
, windows won't recognize npm as a command anymore.
(it turns out this folder is empty, I should have checked myself but I trusted the docs)
Expected Behavior
I think the doc should include a warning about this method being dangerous or just be clearer about who can apply it, because evidently I wasn't one of them.