- 执行 brew -v ,检查Homebrew
Homebrew 3.2.12-16-g2e967f1
Homebrew/homebrew-core (git revision 566a5de5cf; last commit 2021-09-16)
Homebrew/homebrew-cask (git revision dade81101b; last commit 2021-09-16)
如果没有前往brew官网安装
- 安装node
执行 brew install node
安装成功执行 npm -v 查看版本
7.21.1
遇到的问题
pcre安装失败
执行 brew install pcre
安装成功后重新执行 brew install node
其他包安装失败同理