mac安装brew

一、安装方式一:官方途径(❌)

  1. 进入官网

https://brew.sh/index_zh-cn

  1. 按步骤执行

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  1. 失败

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

二、安装方式二:git封装脚本(✅)多去git找找资源,会发现新天地的

  1. 执行以下:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

  1. 运行成功如下:

  1. 查看版本

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)

  1. 完成
posted @ 2021-03-10 10:55  时间会有答案  阅读(211)  评论(0编辑  收藏  举报