Mac 下使用brew install 报错:

localhost:infer-osx-v0.6.0 admin$ sudo brew install opam
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.

用sudo执行brew命令,必须将 /usr/local/bin/brew 改成root

sudo chown root:wheel /usr/local/bin/brew





 sudo chmod go-w /usr/local/bin

相关文章:

  • 2022-02-07
  • 2022-12-23
  • 2021-05-20
  • 2021-09-25
  • 2021-07-31
  • 2021-06-04
  • 2022-01-04
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
  • 2021-08-15
  • 2021-08-22
  • 2021-12-11
相关资源
相似解决方案