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 去掉就可以了

发布了361 篇原创文章 · 获赞 41 · 访问量 16万+

猜你喜欢

转载自blog.csdn.net/guo_qiangqiang/article/details/104211087