安裝 系統(tǒng)默認版本 使用Homebrew安裝。 brew node 安裝完node之后最好升級npm到最新版本npm install -g npm 多版本 使用nvm安裝(根據(jù)官方教程安裝)