How to install multiple version of node.js in Ubuntu using NVM?
The top answer is out of date. Now, just follow the guide on the github to install :
https://github.com/creationix/nvm#installation
For linux machines, its as simple as :
curl -o- https://raw.githubusercontent.com/creationix/nvm/v*/install.sh | bash
Replace v*
with the latest version from https://github.com/creationix/nvm/releases.
For example:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash