mac安装brew
一、安装方式一:官方途径(❌)
- 进入官网
- 按步骤执行
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 失败
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
二、安装方式二:git封装脚本(✅)多去git找找资源,会发现新天地的
- 执行以下:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
- 运行成功如下:
- 查看版本
brew -v
Homebrew 3.0.5-dirty
Homebrew/homebrew-core (git revision 3acb11de83; last commit 2021-03-10)
Homebrew/homebrew-cask (git revision b63ff217f0; last commit 2021-03-09)
- 完成