Skip to content

Instantly share code, notes, and snippets.

@ddeveloperr
Created July 20, 2017 21:48
Show Gist options
  • Select an option

  • Save ddeveloperr/8a00d22876070e18f57b12fd9dd082bc to your computer and use it in GitHub Desktop.

Select an option

Save ddeveloperr/8a00d22876070e18f57b12fd9dd082bc to your computer and use it in GitHub Desktop.
NODE.JS INSTALATION VIA NVM

Just like Ruby language has the RVM (Ruby Version Manager) to manage multiple Ruby versions, Node.js also has a manager too, the NVM (Node Version Manager). NVM is a perfect solution to test your projects in different Node.js versions. It is also useful for people that like to test unstable or latest versions. NVM has great advantages, it is practical, easy to use, it can uninstall a Node.js version with a single command and will save you time to search and install some Node.js version. It is a good alternative, especially on Linux which its native package managers are frequently outdated and invalidates a new Node.js version to be installed.

SETUP NVM

In few steps you can set up NVM into a MacOSX or Linux system, you just need to run this command:

curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash

INSTALLING NODE.JS VIA NVM To install Node.js via NVM, you just need to run the following commands:

$ nvm install v5.6.0
$ nvm use v5.6.0
$ nvm alias default v5.6.0

p.s you can set your version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment