美文网首页
安装brew问题:xxx is not in your PATH

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

作者: Matt_Z_ | 来源:发表于2021-04-06 12:40 被阅读0次
    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.

    相关文章

      网友评论

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

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