homebrew安装失败
首先要下载 安装homebrew。
踩坑一:官方文档给出的代码:
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
直接在终端中运行会报错,
解决方法:
配置hosts文件,目录在 /private/etc/hosts
https://www.ipaddress.com 在这个网站中查找 raw.githubusercontent.com 的IP地址,显示有4个,就将这四个都写在hosts 文件中。
# GitHub raw & imag
185.199.108.133 ra