Have you heard of n? With n
you can interactively manage all your Node versions. You can have any amount of versions, for example 0.10.44 and 5.10.1 alongside each other.
How to do it:
Install npm
with sudo apt-get install npm
.
sudo npm install n -g
.
sudo n stable
or any of the results of n ls
to download and install that node
version.
Sit back and let it install.
To verify that the installation was successful, type node -v
.
To install another node
version, simply run sudo n <version>
(e.g 0.10
). To switch, type sudo n
and select your preferred version with the arrow up and down keys.