holyredbeard holyredbeard - 2 years ago 88
Node.js Question

Upgrading Node.js to latest version

So, I have Node.js installed and now when I tried to install Mongoosejs I got an error telling me that I don't have the needed version of Node.js (I have v0.4.11 and v0.4.12 is needed).

How can I upgrade to this version? I suppose I just could install it again with the latest version, but I don't want to do it before I'm sure that my project folders in the folder "node" won't be deleted.

Answer Source


The module n makes version-management easy:

sudo npm install n -g
sudo n 0.12.2

For the latest stable version:

sudo n stable


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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download