Skip to content

Commit

Permalink
use nvm setup nodejs env
Browse files Browse the repository at this point in the history
  • Loading branch information
panawang committed Jun 26, 2015
1 parent 8554f74 commit b0d14c0
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Node.js/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# Node.js

Install [Node.js](http://nodejs.org/) with Homebrew:
Install [Node.js](http://nodejs.org/) with [nvm](https://github.com/creationix/nvm) (Node Version Manager):

$ brew update
$ brew install node
### Install nvm

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

### Install nodejs

$ nvm # check the nvm use message
$ nvm install 0.12 # install nodejs 0.12
$ nvm ls # list installed node version
$ nvm use 0.12 # use 0.12 as current version
$ nvm ls-remote # list all the node versions you can install
$ nvm alias default 0.12 # set 0.12 as the default node

Node modules are installed locally in the `node_modules` folder of each project by default, but there are at least two that are worth installing globally. Those are [CoffeeScript](http://coffeescript.org/) and [Grunt](http://gruntjs.com/):

Expand Down

0 comments on commit b0d14c0

Please sign in to comment.