我跑了brew update
并得到
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Failed to connect to 10.8.0.1 port 8080: Operation timed out
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed!
所以我有时会使用一个有代理的网络,所以我在 .bash_profile 中添加了以下几行(除了通过系统首选项对网络设置进行的通常更改):
export http_proxy="http://10.8.0.1:8080"
export https_proxy="https://10.8.0.1:8080"
所以我认为这可能会导致问题并注释掉这些行,使用源 .bash_profile,重新启动并使用蜂窝网络。还是一样的错误。
最佳答案
首先删除代理。
我有同样的问题。
在您的终端中尝试运行 brew update-reset
然后 source ~/.bash_profile
关于macos - 错误 : Fetching/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54834266/