欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

mac下brew install 报错

程序员文章站 2023-12-30 21:03:46
...

mac下brew install 报错

Password:

Error: Cowardly refusing to `sudo brew install'

You can use brew with sudo, but only if the brew executable is owned by root.

However, this is both not recommended and completely unsupported so do so at

your own risk.

 

原因是这个brew的权限不正确

 

修改一下这个brew的权限chown root:wheel /usr/local/bin/brew

OK

相关标签: brew

上一篇:

下一篇: