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

ruby on rails - Is it the correct way to implement belongs_to relation with factory girl? -

geolocation - Windows Phone 8 - Keeping background location tracking active beyond four hours -

Uncaught TypeError: Cannot read property 'parentNode' of null javascript -