zsh: command not found

441 阅读1分钟

描述:

安装oh-my-zsh之后npm无法正常使用,node.js是使用brew安装的。

解决方案:

  • 在.zshrc中添加

    source .zshrc.pre-oh-my-zsh

  • 重新加载

    source .zshrc