Mac 无法运行node命令的解决方法


在安装node时提示:node-7.2.1 already installed, it's just not linked 导致无法运行node命令

按照特定的顺序执行这个命令列表:

sudo brew uninstall node brew update brew upgrade brew cleanup brew install node sudo chown -R $(whoami) /usr/local brew link --overwrite node brew postinstall node

然后运行 node -v可以看到安装的node版本了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM