I am going to develop a node.js application which will run on heroku.
This means I will need to install node.js version 0.4.7 on my ubuntu 11.04 -- though the version from the distribution repository is 0.2.6.
What is the recommended way to install it?
(I was able to download the tarball containing the source from nodejs's web site and compile it, but I'd rather not do sudo make install because I'd like to be able to install it in my home directory (or, if needed to have it system-wide, have a clean way to do an uninstall).
Note: I've seen How do I install the latest version of node.js? but I don't want either to sudo make install nor install the latest release from the ppa.
I found out that for nodejs there is nvm https://github.com/creationix/nvm which works in a very similar way to rvm for ruby.
So, once nvm is installed, it is just matter to do
– fdierre Dec 20 '11 at 16:26nvm install v0.4.7
and you're done, exactly like you did with rvm.