Monday, January 21, 2013

Switching NodeJS versions on Ubuntu

This tutorial will demo how you can have multiple versions of NodeJS and switch them any time.

Specs:
  • Ubuntu Server 12.04.1 LTS

Steps:

> sudo apt-get install nodejs npm

> sudo npm install -g n

> sudo n {version}
Ex. sudo n 0.8.18
If the version is not installed, the n cmd will automatically install the version for you. If the version is installed, then it will simply switch to that version.

No comments:

Post a Comment