Official wiki
Installing on Ubuntu/Linux
#prerequisites on ubuntu sudo apt-get install git sudo apt-get install libssl-dev #download node and build sudo git clone http://github.com/joyent/node.git cd node sudo git checkout v0.4.10 sudo ./configure sudo make sudo make install #check if it worked node -v
Install on Windows
Don't!
A Windows pre-built binary has been released but it is unstable. You can download it here: http://nodejs.org/dist/v0.5.4/node.exe
We would suggest running a Linux VM to play around with node.
NPM - Node Package Manager
Unix install
curl http://npmjs.org/install.sh | sh
Or
sudo git clone http://github.com/isaacs/npm.git cd npm sudo make install
Did it work?
node -v npm -v