报错信息:
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
fatal: Could not switch to '.git': Permission denied
Failed during: git init -q
解决方案:
1、执行:sudo chown -R $USER /usr/local
2、安装brew : /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
信息来源: https://github.com/Homebrew/legacy-homebrew/issues/36504
作者:高召
链接:http://www.jianshu.com/p/1e58d3826ad9
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。