Use Node Version Manager

javascript |

Until recently, I had been using the OSX .pkg when installing Node. I had one version installed and relied on Travis to run tests in multiple versions. I’m now totally sold on the Node Version Manager (nvm).

get it

curl https://raw.github.com/creationix/nvm/master/install.sh | sh

use it

nvm install 0.10
nvm use 0.10

Note that you’ll likely want to uninstall your existing Node install when using nvm. If you used the OSX .pkg, you should be able to uninstall with this handy script:

After uninstalling your original Node installation, you need to tell nvm which version to use. It’s easiest to put something like nvm use 0.10 > /dev/null in your .profile or .bash_profile.

Related Posts (see all)

Topology Preserving Simplification Comments
Mocking the file system Comments
AngularJS Whitespace Guide Comments