Node.jsを試す。

Node.jsのインストール

nodebrewでNode.jsを管理する

install nodebrew

$ brew install nodebrew
==> Downloading https://github.com/hokaccha/nodebrew/archive/v0.8.0.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/nodebrew/0.8.0/bin/nodebrew setup_dirs
==> Caveats
Add path:
  export PATH=$HOME/.nodebrew/current/bin:$PATH

To use Homebrew's directories rather than ~/.nodebrew add to your profile:
  export NODEBREW_ROOT=/usr/local/var/nodebrew

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/nodebrew/0.8.0: 7 files,  48K, built in 3 seconds
$ echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc
$ source ~/.bashrc

install Node.js

$ nodebrew ls-remote 
v0.0.1    v0.0.2    v0.0.3    v0.0.4    v0.0.5    v0.0.6    


$ nodebrew install-binary latest
fetch: http://nodejs.org/dist/v0.12.2/node-v0.12.2-darwin-x64.tar.gz
######################################################################## 100.0%
Install successful
$ nodebrew ls
v0.12.2

current: none

$ nodebrew use v0.12.2 
use v0.12.2

$ nodebrew ls
v0.12.2

current: v0.12.2

$ node -v
v0.12.2

$ npm -v
2.7.4