mac安装brew失败,报错port 443: Connection

报错:Failed to connect to raw.githubusercontent.com port 443: Connection
环境:macOS Catalina(10.15.4)
安装:/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

1、网络问题(不排除DNS的原因),其他博客里面有很多解决方案
(很多都是直接复制粘贴的,还有和安装brew毫无关系的“黑科技”?还有因为不能访问外网所以需要下载一个离线网页?反正看不靠谱自己看着办吧!)

2、官网提供的替代安装(github):

官方文档指路链接:Homebrew Documentation

git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
mkdir ~/.linuxbrew/bin
ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)

执行brew install xx时会自动更新,问题暂时解决

你可能感兴趣的:(工具类)