安装homebrew报错: Failed to connect

2020-01-09  本文已影响0人  刘明洋

命令行执行

/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,

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

具体步骤:
1、removing the old tools

$ sudo rm -rf /Library/Developer/CommandLineTools

2、install xcode command line tools again

$ sudo xcode-select --install

3、重新安装

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
上一篇 下一篇

猜你喜欢

热点阅读