Skip to content

Instantly share code, notes, and snippets.

@Jeff-Lewis
Created April 21, 2018 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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