转自:http://www.jianshu.com/p/20ea93641bda

通过brew安装node和npm

brew link node
brew uninstall node
brew install node

测试Node和npm安装是否成功,安装Grunt:

npm install -g grunt-cli