前言
今天安装brew,一会报这个错,一会儿报那个错,上网查了很多教程,用了很多时间都是不可以,网上资料抄来抄去,可阅读性很差
Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in
Bash. Please migrate to the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
最终翻阅资料,海纳百川,解决问题!
解决
使用大佬脚本解决问题
自动脚本(全部国内地址)(在Mac os终端中复制粘贴回车下面这句话)
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
按照要求输入开机密码即可
原文:Homebrew国内如何自动安装(国内地址)