Skip to content

Instantly share code, notes, and snippets.

@Jeff-Lewis
Created April 21, 2018 14:53
Show Gist options
  • Save Jeff-Lewis/0714eabab700d3cbac2417c2ec28d0de to your computer and use it in GitHub Desktop.
Save Jeff-Lewis/0714eabab700d3cbac2417c2ec28d0de to your computer and use it in GitHub Desktop.
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