【问题标题】:Installing git on macOS with Homebrew Error [closed]在带有 Homebrew 错误的 macOS 上安装 git [关闭]
【发布时间】:2021-01-19 17:08:40
【问题描述】:

我已经在 macOS 上安装了 HomeBrew,但是当我尝试通过以下命令安装 git 时:

brew install git

终端弹出这个错误:

Updating Homebrew...

Error: The following directories are not writable by your user:
/usr/local/share/zsh /usr/local/share/zsh/site-functions

You should change the ownership of these directories to your user.  
sudo chown -R $(whoami) /usr/local/share/zsh
/usr/local/share/zsh/site-functions

我真的不明白程序真正想让我说什么。任何有用的帮助。

【问题讨论】:

    标签: git macos terminal homebrew macos-catalina


    【解决方案1】:

    运行这个命令

    sudo chown -R $(whoami) /usr/local/share/zsh /usr/local/share/zsh/site-functions
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-28
      • 1970-01-01
      • 2017-05-05
      相关资源
      最近更新 更多