mac--“-bash: brew: command not found”,怎么解决?

报错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
相关文章
相关标签/搜索