Node Version Manager

Node Version Manager – Simple bash script to manage multiple active node.js versions on the same machine.It is helpful for us to test the application with different versions of node.

Installation :

Update your system and install prerequisites.

sudo apt-get update

sudo apt-get install build-essential -y

sudo apt-get install libssl-dev

Install script:

For a quicker installation, just download and execute the install script provided via cURL or Wget

Using cURL :

 curl | sh

Using Wget :

 wget -qO- | sh

The Script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile if found else ~/.profile).

Manual install:

For manual install create a folder in your filesystem with the file inside it. I am putting

mine in a folder called nvm.

clone the git repository from github into ~/.nvm

git clone ~/.nvm

For activation ,you need to source it from the bash shell using source  or  . –

.  ~/nvm/

It asks the interpreter to interpret the script in the current process. In bash it’s equivalent to:

source  ~/nvm/

You need to execute a script in the current process if you want it to change the environment (variables, et al). You can view more details with help . (To clarify . is an alias for source in bash)


This one actually runs the script in a new bash process. It cannot change the environment of the parent, for example it cannot export variables to the parent process.


To download, compile, and install the latest v0.10.x release of node, do this:

nvm install 0.10.29

And then in any new shell just use the installed version:

nvm use 0.10.29

Or you can just run it:

 nvm run 0.10.29 –version

If you want to see what versions are installed:

nvm ls

If you want to see what versions are available to install:

nvm ls-remote

More Information on Installation via Node Version Manager  : Node Version Manger


My Name is Dileep Singh, Noder, Javascript Lover & NoSql Developer, Fitness Freak, Love to travel new places, learning photography & Music Manic ♯ ♩ ♬

Posted in Node.Js Tagged with: ,