Mac 执行brew命令报错:Error: Running Homebrew as root is extremely dangerous and no longer supported.

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.

以root身份运行Homebrew非常危险,不再受支持。由于Homebrew不会删除安装权限,因此您将为所有构建脚本提供对系统的完全访问权限。

把 sudo 去掉就可以了

你可能感兴趣的:(Linux,软件,Shell)