记录一下自己遇到的问题
=====================
一、mac安装brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
问题1:安装后提示
-bash: brew: command not found
解决方法:sudo vim /etc/profile,在PATH后添加/usr/local/bin路径,重启终端
问题2:安装过程中报错
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
解决方法:
依次执行以下命令,apple改为自己的mac用户名
sudo chown -R apple:staff *
brew doctor