1.安装brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 按提示即可
2.安装node
brew install node
3.更新npm
npm install npm -g