Mac安裝homebrew

1、正常情況下在終端執行指令:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2、但是等待一段時間出現如下提示,說明無法訪問官方腳本

zcurl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out

3、那么可以運行一下指令,使用中科大鏡像加速訪問:

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

4、如果卡在下面信息或者安裝失敗:

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...

5、依次執行下面指令

cd "$(brew --repo)/Library/Taps/"
mkdir homebrew && cd homebrew
git clone git://mirrors.ustc.edu.cn/homebrew-core.git

6、然后再次執行指令:

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

7、當看到==> Installation successful!說明安裝成功!記得給小心心!

?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。