tdruta
Last Updated: February 25, 2016
·
652
· paulbjensen

Use different versions of Node.js for your apps

If you find yourself needing to use different versions of Node.js for your applications, there is a handy tool called NVM:

https://github.com/creationix/nvm/

To install it, run the following commands in your terminal:

git clone git://github.com/creationix/nvm.git ~/nvm
. ~/nvm/nvm.sh

Once installed, you can install versions of Node.js like this:

nvm install v0.8.5

When you then want to use a specific version of Node (say 0.6) for your application, you can do this:

nvm use v0.6.20