macOS M1 bigsur brew安装的各种坑及解决办法

909 阅读1分钟

homebrew 安装

  1. CSDN--Homebrew安装命令

  2. CSDN--M1 Mac上怎样使用Homebrew

brew install hive(其他库也一样) --报错

Tapping homebrew/core Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-core'...


解决:这里是上github 克隆homebrew-core库

control+c终止掉,执行下边的命令手动从镜像库克隆homebrew-core内容。

cd "$(brew --repo)/Library/Taps/"

mkdir homebrew && cd homebrew

git clone git://mirrors.ustc.edu.cn/homebrew-core.git

再次执行brew update

成功执行之后继续执行之前的安装命令,brew install hive 即可download,最后看到==> Installation successful!就说明安装成功了。