美文网首页
homebrew安装npm报zsh: command not f

homebrew安装npm报zsh: command not f

作者: cochn | 来源:发表于2019-11-14 09:50 被阅读0次

    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查看是否成功

    相关文章

      网友评论

          本文标题:homebrew安装npm报zsh: command not f

          本文链接:https://www.haomeiwen.com/subject/jfilictx.html