Upgrade npm on windows

npm currently has 3.10.6 (as of 16-Jul-2016) currently available as a beta.
You can currently install 3.x.x alongside 2.x.x by using the command

>npm install -g npm3
but that is not what I wanted.
I wanted to run npm as npm and I wanted to be running npm version 3.x.x so that I could use Angular 2

I followed the instructions from this link https://github.com/felixrieseberg/npm-windows-upgrade

Run Powershell as administrator

> Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force

> npm install –global –production npm-windows-upgrade

>npm-windows-upgrade

Now have version 3.10.6 installed

Thank you to the Microsoft DX Engineers

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s