安装 Homebrew 报错
2020-10-22 本文已影响0人
Balopy
安装 Homebrew 报错
fatal: cannot copy '/Library/Developer/CommandLineTools/usr/share/git-core/templates/hooks/fsmonitor-watchman.sample' to '/usr/local/Homebrew/.git/hooks/fsmonitor-watchman.sample': Permission denied
Failed during: git init -q
在终端输入
sudo chown -R $USER /usr/local
然后再次安装
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"