使用
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)"
前提:已经安装xcode,因为可能需要一些依赖工具
推荐国内源安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
按照提示进行即可
测试