1、“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.”
解决方式:
/usr/local
can no longer be chown'd in High Sierra. Instead use
sudo chown -R $(whoami) $(brew --prefix)/*