Node is so easy to install manually. I like to do it like this because it is very easy to switch versions.
This is also great because you do not need to add an external package repository to apt , and you do not need to wait for these repositories to be updated when node releases a new version. You can receive updates as soon as they are released.
The best part of this is that you can repeat the pattern for any other version of node, change the current symbolic link at any time to switch the version you are working on, and you are good to go
% node --version v0.10.12 % npm --version 1.2.32
Additional pointers when writing executable scripts
Make executable file
% touch ~/somefile && chmod +x ~/someifle && nano ~/somefile
File contents
Run it
% ./somefile v0.10.12
user633183 Jul 04 '13 at 17:52 2013-07-04 17:52
source share