前言
macOS中常用brew来安装其他的软件,若brew命令找不到,那就需要自行安装了,详细步骤见下文哦~
MacOS还是不太熟练,加油~
1,macOS brew install
mac环境下,如何解决brew command not found错误,在终端下,执行以下命令,即可安装brew:1
2
3
4
5% /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
% echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/xinwen/.zprofile
% eval "$(/opt/homebrew/bin/brew shellenv)"
在终端环境下,brew —version 查看brew的版本,也可以验证brew是否安装成功