Upgrade node / NPM on Windows

//Upgrade node / NPM on Windows

Upgrade node / NPM on Windows

You could run  npm i -g npm to update your node, but you should go for:

  1. Open a Powershell as Administrator
  2. Set the Execution Policy the right way, with unrestricted rights:  
  3. Install the npm-windows-upgrade package as global:
  4. Finally, run the updater and choose your desired version:
Upgrade node on Windows

Upgrade node on Windows

 

According to stack overflow user „Robert“, here are the reasons for updating NPM the way described here:

  • Upgrades npm in-place, where node installed it.
  • Easy updating, update the to the latest by running .
  • Does not modify the default path.
  • Does not change the default global package location.
  • Allows easy upgrades and downgrades.
  • Officially recommended by the NPM team.
By | 2017-01-29T10:31:35+00:00 September 10th, 2016|Internet and Web Engineering|0 Comments

Leave A Comment