美文网首页
homebrew 无法安装,提示不能在根目录下使用

homebrew 无法安装,提示不能在根目录下使用

作者: 独行侠_ef93 | 来源:发表于2019-01-27 14:21 被阅读0次

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.

按照下面的方法,sudo chown -R $(whoami) /usr/local,依然是同样报错,我查看了brew的版本,和我之前的Mac不太一样。

解决方法:

提示你不要在root权限下使用brew,那你就不要加sudo了

相关文章

网友评论

      本文标题:homebrew 无法安装,提示不能在根目录下使用

      本文链接:https://www.haomeiwen.com/subject/qawgjqtx.html