mac

打开终端,输入

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

 

看到

Installation successful! 代表安装成功

配置一下path

2.echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/haoxing/.zprofile

3.haoxing@haodeMBP ~ %

4 brew -v 展示版本号,验证成功