美文网首页
安装homebrew报错: Failed to connect

安装homebrew报错: Failed to connect

作者: 刘明洋 | 来源:发表于2020-01-09 11:55 被阅读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)"

相关文章

网友评论

      本文标题:安装homebrew报错: Failed to connect

      本文链接:https://www.haomeiwen.com/subject/qnryactx.html