【发布时间】:2021-01-05 07:18:42
【问题描述】:
我已经搜索了我遇到的错误,但据我所知,这个问题可能与为 Big Sur/Apple Silicon 保存 Homebrew 的路径与其他 Macbook 方法不同。
按照Homebrew page 上的说明,我运行了cURL 命令:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
但是,操作成功完成后,终端出现警告:
warning: bin/opt/ path does not exist
当我尝试运行brew doctor 时,找不到该命令。
很明显存在路径问题,但我该如何解决它
【问题讨论】:
-
如果您使用fish,请在
~/.config/fish/config.fish中尝试fish_add_path --path /opt/homebrew/bin。export在 zsh 和 bash shell 中运行良好,但在 fish 中引起了各种问题。使用fish_add_path解决了我的问题。
标签: terminal command-line-interface homebrew