zoukankan      html  css  js  c++  java
  • Mac 下使用brew install 报错: Cowardly refusing to `sudo brew install'

    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




    出现 warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777


     sudo chmod go-w /usr/local/bin
  • 相关阅读:
    google浏览器切换成中文
    Python 进阶篇
    Linux 命令
    Linux
    Linux
    Linux
    Linux--shell脚本之文本处理工具
    Linux--shell脚本之正则表达式
    Linux
    Linux
  • 原文地址:https://www.cnblogs.com/liangqihui/p/6500537.html
Copyright © 2011-2022 走看看