如何在Mac下安装Node.js
使用HomeBrew安装,直接在终端中运行以下命令:
brew install node
brew install npm
如果你Mac OS X没有安装HomeBrew,可以去官网HomeBrew,直接在终端中运行以下命令:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"