报错如下:
Error: 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.
修改Homebrew安装目录权限
sudo chown -R user /usr/local
brew update
brew upgrade
