Created
April 21, 2018 14:53
-
-
Save Jeff-Lewis/0714eabab700d3cbac2417c2ec28d0de to your computer and use it in GitHub Desktop.
Install (update) npm -global on Windows when using nvm-windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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