I ran brew update
and got
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!
So I sometimes use a network which has proxy, so I added the following lines to .bash_profile (apart from usual changes in network settings via system preferences):
export http_proxy="http://10.8.0.1:8080"
export https_proxy="https://10.8.0.1:8080"
So I thought this might be causing the problem and commented these lines out, used source .bash_profile, rebooted and used cellular network. Still the same error.
The brew tap command You can install and uninstall them with brew [un]install , and the formulae are automatically updated when you run brew update .
Taps (Third-Party Repositories) The brew tap command adds more repositories to the list of formulae that Homebrew tracks, updates, and installs from. By default, tap assumes that the repositories come from GitHub, but the command isn't limited to any one location.
The update-reset version of this command resets all formulae to be identical to the contents of their remote repositories, deleting any local changes. It is only used as a last-resort effort to fix a problem (it's like unplugging Homebrew and plugging it back in).
First remove the proxy. I had the same problem.
In your terminal try running brew update-reset
and then source ~/.bash_profile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With