错误提示:
在通过brew安装cpolar(内网穿透工具)时出现了如下报错
brew tap probezy/core && brew install cpolar
guobao@guobaodeMacBook-Pro ~ % brew tap probezy/core && brew install cpolar
==> Tapping probezy/core
Cloning into '/opt/homebrew/Library/Taps/probezy/homebrew-core'...
fatal: unable to access 'https://github.com/probezy/homebrew-core/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
Error: Failure while executing; `git clone https://github.com/probezy/homebrew-core /opt/homebrew/Library/Taps/probezy/homebrew-core --origin=origin --template=` exited with 128.
解决办法:
替换homebrew默认源
cd "$(brew --repo)"
git remote set-url origin git://mirrors.ustc.edu.cn/brew.git
替换homebrew-core源
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git
然后再次通过brew安装cpolar(内网穿透工具)即可,执行结果如下图所示: