NOTE. You can use NVM software for this in a narrower modem. However, I got problems on one machine that prevented me from using NVM. So I need to look for an alternative; -)
You can download and install it manually.
go to nodejs> download> other releases http://nodejs.org/dist/
select the version you are looking for http://nodejs.org/dist/v0.8.18/
select the distribution files appropriate for your environment and download (take care of the 32-bit / 64-bit version). Example: http://nodejs.org/dist/v0.8.18/node-v0.8.18-linux-x64.tar.gz
Extract the files and follow the instructions on README.md:
To build:
Prerequisites (Unix only):
* Python 2.6 or 2.7 * GNU Make 3.81 or newer * libexecinfo (FreeBSD and OpenBSD only)
Unix / Macintosh:
./configure make make install
If your python binary is in a non-standard location or has a non-standard name, do the following instead:
export PYTHON=/path/to/python $PYTHON ./configure make make install
Window:
vcbuild.bat
To run the tests:
Unix / Macintosh:
make test
Window:
vcbuild.bat test
To create documentation:
make doc
To read the documentation:
man doc/node.1
You might want (to) move the folder to a more appropriate location, for example / usr / lib / nodejs / node-v0.8.18 /, then create a Symbolic Lynk in / usr / bin to access your install from anywhere.
sudo mv /extracted/folder/node-v0.8.18 /usr/lib/nodejs/node-v0.8.18 sudo ln -s /usr/lib/nodejs/node-v0.8.18/bin/node /usr/bin/node
And if you want a different release on the same computer, you can use debian alternatives. Continue as before to download the second issue. For example, the latest version.
http://nodejs.org/dist/latest/ โ http://nodejs.org/dist/latest/node-v0.10.28-linux-x64.tar.gz
Move to your favorite destination, the same from the rest of the release that you want to install.
sudo mv /extracted/folder/node-v0.10.28 /usr/lib/nodejs/node-v0.10.28
Follow the instructions in the README.md file. Then update the alternatives, for each version you have dowload to install the alternative.
sudo update-alternatives
eg:
sudo update-alternatives
Then you can use update-alternatives --config node to select any number of editions installed on your computer.