安装brew问题:xxx is not in your PATH

2021-04-06  本文已影响0人  Matt_Z_
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.

上一篇下一篇

猜你喜欢

热点阅读