Installation 无法在MacOS Catalina中安装自制软件

Installation 无法在MacOS Catalina中安装自制软件,installation,homebrew,macos-catalina,Installation,Homebrew,Macos Catalina,当我尝试时: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 我得到一个错误: fatal: cannot copy '/usr/local/git/share/git-core/templates/hooks/fsmonitor-watchman.sample' to '/usr/local/Homebrew/.git/hoo

当我尝试时:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
我得到一个错误:

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

网上没有任何东西可以解决这个问题,我似乎无法回避它。注意:我尝试了stackoverflow上发布的其他答案,但它们没有遇到相同的问题。

关于您尝试过的其他内容的其他信息将帮助人们回答。