報錯python
「-bash: brew: command not found」
執行下面命令,安裝HomeBrewgit
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
此時報錯:github
Error: Failure while executing: git clone https://github.com/Homebrew/homebrew-core /usr/local/Library/Taps/homebrew/homebrew-core --config core.autocrlf=false --depth=1 -q Error: Failure while executing: /usr/local/bin/brew tap homebrew/core -q
依次執行下面兩行命令便可成功解決ruby
一、sudo chown -R apple:staff * 二、brew doctor
命令執行完以後HomeBrew也就安裝好了bash
好了,小夥伴們,能夠開始大家的操做啦app
brew install xxx 安裝xxx
brew uninstall xxx 卸載xxx
brew update xxx 更新xxx
brew doctor 修復brew