sudo apt-get update
sudo apt-get install build-essential openssl libssl-dev pkg-config
cd /usr/local/src
sudo mkdir node
cd node
sudo wget <node-package>
sudo tar -xzf <node-package>
cd <node-package>
sudo ./configure
sudo make
sudo make install
To upgrade Node.js simply download the new tarball, extract and repeat the installation process.