homebrew安装npm报zsh: command not f

2019-11-14  本文已影响0人  cochn

homebrew安装成功,brew list执行后有node,依然zsh: command not found: npm
或者env: node: No such file or directory的解决办法:

依次执行:
brew uninstall node
brew update
brew upgrade
brew cleanup
brew install node
`brew link --overwrite node·
·brew postinstall node·

此时执行node -v查看是否成功

上一篇下一篇

猜你喜欢

热点阅读