npm upgrade in Windows

I've been working on Angular 2, since is not already released, at the time of this post it is on RC5. The Angular Team keep making changes and sometimes those new changes are related to npm updates. I searched about it and I found an entry on StackOverflow. The answer there says there is a new npm package called np-windows-upgrade that makes self updates to npm in windows environment. To execute it on powershell should as Admin. Paste this command on you Powershell console window

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm install -g npm-windows-upgrade
npm-windows-upgrade

After running shows a list of possible npm versions that you can select.

You may be getting s result like this

After that Ido npm-install of my Angular 2 projects then I'm not getting errors anymore.

Hope that helps!

No Comments