美文网首页
[macOS]安装homebrew之后提示zsh: comman

[macOS]安装homebrew之后提示zsh: comman

作者: WANKUN | 来源:发表于2022-12-29 21:51 被阅读0次

安装完homebrew后会有一条提示,如下图,应该是brew想在这里建立软链接但是发现没这个目录(macOS好像默认没有),这说明我们没有把brew添加到PATH里。

解决方法:执行以下命令

echo "export PATH=$PATH:/opt/homebrew/bin" >> ~/.zprofile

1

如果只想一次生效的话,执行以下命令:

export PATH=$PATH:/opt/homebrew/bin

1

也可以vim自己改了,一样。

之后执行

source ~/.zprofile

1

————————————————

相关文章

网友评论

      本文标题:[macOS]安装homebrew之后提示zsh: comman

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