直接在终端执行
/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
那么先执行:
rm -rf /Library/Developer/CommandLineTools
然后执行:
install requested for command line developer tools
如果报错:
Failed to connect to raw.githubusercontent.com port 443: Operation timed out
那么一般是网络问题,可以换个网络或过一段时间再次安装Homebrew
上面的问题解决后再次执行Homebrew安装:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
网友评论