在更新或者安装brew报root权限的错误
Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
解决:
sudo chown -R $(whoami) /usr/local
把/use/local的owner换成自己,就有write权限了
whoami就是一个命令,会echo当前登录用戶的名字。比如erica,就直接
sudo chown -R erica /usr/local
然后在执行
brew install 或者 brew update 就可以了