使用
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
拋出警告
Bash. Please migrate to the following command:
? /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

前提:已經(jīng)安裝xcode,因?yàn)榭赡苄枰恍┮蕾嚬ぞ?/p>
推薦國內(nèi)源安裝
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
按照提示進(jìn)行即可

測試
