折腾了好久,执行

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
开始一直报错Failed to connect to raw.githubusercontent.com port 443: Connection refused error: Error: 7,
mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:
尝试过改动git config的代理,没有用,

换中科大的源,也没有用

最后解决办法如下,重装command line tools,再执行安装指令,homebrew安装成功。

分别在终端执行如下操作:
删除旧的commandLine工具
sudo rm -rf /Library/Developer/CommandLineTools
mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:
xcode-select --install
执行后会弹出界面,直接安装就行
mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install
mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:
mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:
到此就安装成功了。

相关文章:

  • 2021-07-22
  • 2021-05-29
  • 2021-07-08
  • 2021-07-05
  • 2022-12-23
猜你喜欢
  • 2021-05-07
  • 2021-07-20
  • 2021-11-17
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
相关资源
相似解决方案