MacOS 安装brew失败解决方法

报错信息

error: RPC failed; curl 28 LibreSSL SSL_read: Operation timed out, errno 60
fatal: expected flush after ref listing

fatal: unable to access ‘https://github.com/Homebrew/brew/’: LibreSSL SSL_connect: Operation timed out in connection to github.com:443

解决方法

1.换一个网络较好的网,不要卡的或慢的。
2.把梯子退掉。
3.换成国内的源,使用这个命令进行重新安装/bin/zsh -c “$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)”
4.选择一个源,我选的中科大。稍等片刻,几分钟不到吧。

在这里插入图片描述
出现这些提示说明安装成功。
在这里插入图片描述
安装成功

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐