Skip to content

Instantly share code, notes, and snippets.

@timknip
Last active July 11, 2018 13:02
Show Gist options
  • Save timknip/d0331da0b02816f814d13b60db622b43 to your computer and use it in GitHub Desktop.
Save timknip/d0331da0b02816f814d13b60db622b43 to your computer and use it in GitHub Desktop.
cd "$PROGRAMFILES"/nodejs
rm npm npx npm.cmd npx.cmd
mv node_modules/npm node_modules/npm2
node node_modules/npm2/bin/npm-cli.js i -g npm@latest
rm -rf node_modules/npm2/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment