mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:

执行:

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

报错:mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error

解决方案:

1、removing the old tools 

$ rm -rf /Library/Developer/CommandLineTools

2、install xcode command line tools again 

$ xcode-select --install

3、

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

你可能感兴趣的:(mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:)