1.bug描述
在MacOS平台下安装Homebrew时出现以下报错
==> Downloading and installing Homebrew...
fatal: cannot copy '/usr/local/git/share/git-core/templates/hooks/fsmonitor-watchman.sample' to '/usr/local/Homebrew/.git/hooks/fsmonitor-watchman.sample': Permission denied
Failed during: git init -q
2.解决办法
在终端执行
sudo chown -R $USER /usr/local
然后再重现安装
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.参考文献
Homebrew install fails while copying files