How to install nvm (Node Version Manager) - Gizra/KnowledgeBase GitHub Wiki
- Open the terminal
- Paste
curl https://raw.githubusercontent.com/creationix/nvm/v0.7.0/install.sh | shand run it. - Edit the file
~/.bashrcwith your favorite editor (e.g.sudo nano ~/.bashrc) and go to the end of the file. - Paste the two lines:
# nvm (node version manager)
source ~/.nvm/nvm.sh
- Save the file.
- Run:
source ~/.bashrc - Run the command:
nvm install v0.10.28(Or other version you want) and wait after it will finish the installation. - Run:
nvm use v0.10.28. It should print to the screen:Now using node v0.10.28. - Run:
nvm alias default v0.10.28to set the default node version tov0.10.28
Thats it!.