直接在terminal下运行以卸载node和nvm:
sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/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版本了

 



相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-02-04
  • 2022-12-23
  • 2021-12-29
  • 2021-10-01
  • 2021-11-01
猜你喜欢
  • 2021-10-11
  • 2021-08-13
  • 2021-04-05
  • 2022-02-10
  • 2021-08-06
  • 2021-12-29
相关资源
相似解决方案