Just like Ruby language has the RVM (Ruby Version Manager) to manage multiple Ruby versions, Node.js also has a manager too, the NVM (Node Version Manager). NVM is a perfect solution to test your projects in different Node.js versions. It is also useful for people that like to test unstable or latest versions. NVM has great advantages, it is practical, easy to use, it can uninstall a Node.js version with a single command and will save you time to search and install some Node.js version. It is a good alternative, especially on Linux which its native package managers are frequently outdated and invalidates a new Node.js version to be installed.
SETUP NVM
In few steps you can set up NVM into a MacOSX or Linux system, you just need to run this command:
curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
INSTALLING NODE.JS VIA NVM To install Node.js via NVM, you just need to run the following commands:
$ nvm install v5.6.0
$ nvm use v5.6.0
$ nvm alias default v5.6.0
p.s you can set your version!