Homebrew 官方网站:https://brew.sh/
按照官方的操作,输入以下命令
/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
 

解决方案:


原因是目前 GitHub 的 gist 访问不了,所以获取不到安装的脚本文件。
运行下面自动脚本(已经全部替换为国内地址):
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

 

参考文章:https://zhuanlan.zhihu.com/p/111014448

相关文章:

  • 2021-07-02
  • 2021-04-14
  • 2021-12-28
  • 2022-01-20
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
猜你喜欢
  • 2022-12-23
  • 2021-07-22
  • 2021-12-18
  • 2021-11-27
  • 2021-09-22
  • 2021-12-09
相关资源
相似解决方案