背景: 电脑里没有装homebrew,所以brew install就不能使用,之前尝试过安装但出现443错误,就一直没有继续,但最终效率还是打败了懒惰。
url: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
这是一直出现的错误,实际上是由于到raw.githubusercontent.com
的连接不稳定所以报错,翻了很多教程最后是跟着 https://zhuanlan.zhihu.com/p/90508170 配置成功。
安装homebrew
大体是一样的,稍微记录一些不一样的小细节。
首先是安装,教程换了个安装源,飞速下载,就是安装Xcode CLT(Command Line Tools)的时候有些费时。
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
最后出现了喜人的安装成功。
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be