首页 > 代码库 > Mac 无法运行node命令的解决方法
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版本了
Mac 无法运行node命令的解决方法
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。