一、首先安装brew。从官网安装时一直报错 参考如下解决
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
如果是 brew 安装的网络问题,提供一个解决办法:
原因是目前 GitHub 的 gist 访问不了,所以获取不到安装的脚本文件。
/usr/bin/ruby -e "$(curl -fsSL https://gitee.com/xueweihan/codes/vfrgh7z8qcjlx1ubwt6nk71/raw?blob_name=brew_install.sh)"
参考链接:
https://www.zhihu.com/question/35928898
https://inetyoung.blog.csdn.net/article/details/106599836?utm_medium=distribute.pc_relevant.none-task-blog-searchFromBaidu-4.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-searchFromBaidu-4.control