The node.js website offers an installation with the well known package manager apt. Unfortunately that didn’t work for me. Every time I tried it, it stopped working with an error message.
So I tried it to install it the manually way.
First of all, make sure you have all dependencies installed:
sudo apt-get install g++ curl libssl-dev apache2-utils sudo apt-get install git-core
Now run the following commands, which firstly clone the git repository, configures node, makes node and install it.
git clone git://github.com/ry/node.git cd node ./configure make sudo make install
If all went successfully, node should run smoothly.