Node that in your case, you may need to change the bold parts according to the version you want

After that, you can check that Node and NPM are properly installed using the following command lines:

node -v

should reply v0.10.2

npm -v

should reply 1.2.25

The compilation will run for 1 or 2 hours on RPi. If you are doing that using ssh connection, you may want to install screen: It will allow you to close the ssh connection without killing the conpilation process. See http://www.howtoforge.com/linux_screen