How to install multiple version of node.js in Ubuntu using NVM?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
prior knowledge
How to use the terminal. You can for example use
gnome-terminal.Install dependencies
Install NVM
Below we will install NVM.
Download nvm
To activate nvm, you need to source it from your bash shell
Install version of node.js
In this example, I am going to install node v0.4.12. We first need open new bash session. You can also do this by typing
bashagain.To make the latest v0.4 branch default you do
Troubleshooting
When you don’t have all dependencies installed you can not compile/install node.js. Then you will need to clean up ~/.nvm