环境:
MacOS 10.12.6
node环境:
brew install node
下载下来的版本为11...即node最新版本
解决办法:
卸载原node
brew uninstall node
安装node版本8
brew install "node@8"
echo 'export PATH="/usr/local/opt/node@8/bin:$PATH"' >> ~/.zshrc
node install
MacOS 10.12.6
brew install node
下载下来的版本为11...即node最新版本
卸载原node
brew uninstall node
安装node版本8
brew install "node@8"
echo 'export PATH="/usr/local/opt/node@8/bin:$PATH"' >> ~/.zshrc
node install
转载于:https://my.oschina.net/u/2539883/blog/2967595