安装Homebrow 报错解决

mac 10.14.3 安装Homebrow 报错解决:

fatal: cannot copy '/Applications/Xcode.app/Contents/Developer/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":admin /usr/local

然后执行安装:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

如果还是失败,尝试删除Homebrow,重新安装:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

你可能感兴趣的:(安装Homebrow 报错解决)