该快速入门是为Mac OSX Mavericks编写的,比其他安装说明更冗长。希望它可以涵盖一些边缘情况,例如设置路径和配置NPM,这可能会导致安装出现问题。
# install node # as of OSX Mavericks, we need the GUI installer (?!) # when a good command line alternative is found, we'll post it http://nodejs.org/download/ # install npm curl -0 -L https://npmjs.org/install.sh | sh # check node is installed correctly node --version # check npm is installed correctly npm -version # find your npm path which npm # make sure npm is in your path sudo nano ~/.profile export PATH=$PATH:/usr/local/bin