【发布时间】: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