1、使用brew安装程序提示如下错误Error: Running Homebrew as root 坡纠课柩is extreme造婷用痃ly dangerous and no longer supported.As Homebrew does not drop privileges on installation you would be giving allbuild scripts full access to your system.
2、如何解决呢?这是因为新的MAC系统不允许在root用户下使用brew命令安装软件了。首先切换到普通用户
3、然后将/usr/local的属组改为当前用户
4、此时用brew搜索软件,如nginx
5、然后安装nginx,能够正常安装了,安装过程如下