1.Choose Nodejs version
Go to https://nodejs.org/dist/ and choose a version to fit with your needs.
Such as for deploy Ghost, we need Node v4.2.x so download v4.2.5 can make Ghost work.
uname -m
*If i686 download x86.tar.gz tar
If x86_64 download x64.tag.gz
*
$ cd /tmp/
$ curl -o node.tar.gz https://nodejs.org/dist/v4.2.5/node-v4.2.5-linux-x86.tar.gz
2. Install nodejs
$ tar --strip-components 1 -xzf /tmp/node.tar.gz -C /usr/local
3. Test
$ node -v
$ npm -v
If your see these result it mean you done right
$ node -v
v4.2.5
$ npm -v
2.14.12
If you dont fail or don't want to do above step
Use Auto Setup Nodejs LTS on any Linux distro in 12 seconds.
Happy deploying :)