1、下载中科大镜像仓库内容
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1
2、
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
3、
(brew update报错后让执行的)
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
然后就能正常的 brew install jq 了