1. 上官方网站先试试。
macOS(或 Linux)缺失的软件包的管理器 — Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
里面只有一条命令,copy ,然后在你的终端执行。但许多人都会出错,下面是我的错误
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master
原因我也不清楚,然后上网查,跟git hub 访问有关
2. 官方科大
Homebrew 源使用帮助 — USTC Mirror Help 文档