Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install (update) npm -global on Windows when using nvm-windows
@REM https://github.com/coreybutler/nvm-windows/issues/300
pushd %ProgramFiles%\nodejs
del npm npm.cmd
move node_modules\npm node_modules\npm2
node node_modules\npm2\bin\npm-cli.js i npm@latest -g
rd node_modules\npm2 /S /Q
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment