Upgrade npm and node on Windows

Home / Upgrade npm and node on Windows

Earlier, I wanted to play around with Angular CLI, but my npm and node versions were out of date. The Angular CLI npm install would fail.

Fortunately, there is a straight-forward update method.

On github, the Microsoft team has placed a method for updating node through PowerShell:

https://github.com/felixrieseberg/npm-windows-upgrade

I was happy to stumble upon this on Github. After using the script in the recommended fashion, from an elevated PowerShell console, the Angular CLI npm installer worked without a hitch.

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install --global --production npm-windows-upgrade
npm-windows-upgrade

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.