安裝brew問題:xxx is not in your PATH

problem
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /usr/sbin/chown -R imatt:admin /opt/homebrew
==> Downloading and installing Homebrew...
HEAD is now at d407a8687 Merge pull request #11002 from Homebrew/revert-10978-github_packages_media_type
fatal: Could not resolve HEAD to a revision
Warning: /opt/homebrew/bin is not in your PATH.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Add Homebrew to your PATH in /Users/imatt/.zprofile:
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/imatt/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
- Run `brew help` to get started
- Further documentation:
    https://docs.brew.sh

這是我開發中遇到的問題:
安裝homebrew完成后沒有添加啟動路徑,所以我們添加homebrew的使用路徑

export PATH=/usr/local/bin:$PATH
export PATH="/opt/homebrew/bin:$PATH 

參考:Cannot update PATH to accommodate Homebrew commands
Mac電腦使用終端安裝Homebrew時出現Warning: /usr/local/bin is not in your PATH.

?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容