Skip to content

Instantly share code, notes, and snippets.

@kurtlippert
Last active January 30, 2018 18:19
Show Gist options
  • Save kurtlippert/bff91d53ed25ff0842d4418a03b7d4e5 to your computer and use it in GitHub Desktop.
Save kurtlippert/bff91d53ed25ff0842d4418a03b7d4e5 to your computer and use it in GitHub Desktop.
Set up Node and NPM on Windows

To Install Node & NPM on Windows

  1. Install NVM-Windows
  2. nvm install latest
  3. nvm use <whatever_the_latest_was>
  4. Then install the windows updater for NPM (npm install -g npm-windows-upgrade)
  5. Run powershell as Administrator
  6. npm-windows-upgrade (Select your version)

To Update Node

  1. nvm list to see installed and used node versions
  2. nvm list available (check highest version in 'CURRENT')
  3. nvm install latest to install latest
  4. nvm use 6.7.0 (to use 6.7.0 for example)
  5. Reinstall npm-windows-upgrade (it gets removed once you update node)

To Update NPM

  1. npm -v to see installed version
  2. npm show npm@* version scroll down to find latest version
  3. npm-windows-upgrade Select your version

NVM issue (won't change versions) Solutions

  1. rm -rf the offending version in your %NVM_HOME% (in cmd), then re-install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment