新しいMacBookで最初にすること(環境構築)

1. Install Xcode
2. Install Homebrew
3. Install rbenv, ruby and rails

CONFIGURE_OPTS="--disable-install-rdoc" rbenv install 2.3.1
rbenv global 2.3.1
gem install rails --no-ri --no-rdoc

4. Install nodebrew and node

curl -L git.io/nodebrew | perl - setup
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> .bash_profile
source .bash_profile
nodebrew install-binary stable ; nodebrew use stable

Tips:
http://qiita.com/yokozawa/items/937375aab0dd6d6ff334
http://stackoverflow.com/questions/11598655/therubyracer-install-error
http://stackoverflow.com/questions/19673714/error-installing-libv8-error-failed-to-build-gem-native-extension