Upgrading Node.js to latest version

The module n makes version-management easy:

sudo npm install n -g

For the latest stable version:

sudo n stable

For the latest version:

sudo n latest

###Windows: just reinstall node from the .msi in Windows from the node website.

Метки: , , , , ,