nodejs - cllu/.rc GitHub Wiki

On linux servers, I prefer to use nvm to install and manage nodejs installation.

$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash

nvm will be cloned under ~/.nvm directory, and all global npm packages will also be installed there.

And then install nodejs by

$ nvm install 0.12.5
$ nvm use 0.12.5

Install a global package

$ npm install -g bower
$ which bower # ~/.nvm/versions/node/v0.12.5/bin/bower