Tom*_*ail 3 macos homebrew apple-silicon
我刚刚在我的新笔记本电脑上安装了brew,但是当我尝试运行brew时,它告诉我没有这样的命令。我可能做错了什么?
tomsmail@MacBook-Air ~ % brew
zsh: command not found: brew
Run Code Online (Sandbox Code Playgroud)
我已经完全安装了brew 以及必要的xcode 终端命令。
跑步:
echo $SHELL
Run Code Online (Sandbox Code Playgroud)
如果显示的 shell 是 zsh,请执行以下操作:
echo "eval $(/opt/homebrew/bin/brew shellenv)" >> ~/.zprofile
Run Code Online (Sandbox Code Playgroud)
如果您的 shell 是 bash,请运行以下命令:
echo "eval $(/opt/homebrew/bin/brew shellenv)" >> ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)
如果结果是 csh,请运行以下命令:
/opt/homebrew/bin/brew shellenv >> ~/.cshrc
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6017 次 |
| 最近记录: |