Skip to content

Instantly share code, notes, and snippets.

@fazlurr
Created November 30, 2020 04:29
Show Gist options
  • Save fazlurr/7ad4993519ed7ea3b4f66766b887fcc4 to your computer and use it in GitHub Desktop.
Save fazlurr/7ad4993519ed7ea3b4f66766b887fcc4 to your computer and use it in GitHub Desktop.
cd %APPDATA%\nvm\v8.10.0 # or whatever version you're using
mv npm npm-old
mv npm.cmd npm-old.cmd
cd node_modules\
mv npm npm-old
cd npm-old\bin
node npm-cli.js i -g npm@latest
cd %APPDATA%\nvm\v8.10.0 # or whatever version you're using
rm npm-old
rm npm-old.cmd
cd node_modules\
rm -rf npm-old
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment