node.js - How do I update node and npm on windows? -


i tried this:

sudo npm cache clean -f sudo npm install -g n sudo n stable 

...but didn't work.

so, how do on windows?

this new best way upgrade npm on windows.

run powershell administrator

set-executionpolicy unrestricted -scope currentuser -force npm install -g npm-windows-upgrade npm-windows-upgrade 

note: not run npm -g npm. instead use npm-windows-upgrade update npm going forward. if run nodejs installer, replace node version.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -