Skip to content

Instantly share code, notes, and snippets.

@farhantahir
Last active March 22, 2017 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farhantahir/fb34436f38a525b08ca5f1afdc33bc7b to your computer and use it in GitHub Desktop.
Save farhantahir/fb34436f38a525b08ca5f1afdc33bc7b to your computer and use it in GitHub Desktop.
Install Node using NVM in Ubuntu

Install Node in Ubuntu

Install NVM (Node Version Manager) with following command
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
Now Install Node with following command
nvm install version etc. nvm install 6.9.2

NVM useful commands:

  • nvm list: To list installed node versions
  • nvm ls-remote: To list all node versions
  • nvm use: To switch node version
  • nvm alias default version: etc nvm alias default 6.9.2 To set a default Node version to be used in any new shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment