alexchenco alexchenco - 24 days ago 6
Node.js Question

How to update node.js?

I did the following to update my npm:

"npm update npm -g"

But I have no idea how to update node.js. Any suggestions?
(I'm using node.js 0.4.1 and want to update to node.js 0.6.1).

Answer

Use Node Version Manager (NVM)

It's a bash script that lets you download and manage different versions of node. Full source code here

There is a separate project for nvm for windows: github.com/coreybutler/nvm-windows