美文网首页IOS技术精华
Error: Cowardly refusing to `sud

Error: Cowardly refusing to `sud

作者: 逆行风 | 来源:发表于2016-11-22 09:29 被阅读54次

12I'm trying to install glue 0.3 for OXS Mountain Lion and ran into this error after installing homebrew (Error: Cowardly refusing tosudo brew installYou 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.) I got this error after the first step for installing glue 0.3 ($ sudo brew install jpeg). No idea how to fix this...please help!

需要修改目录权限:

sudo chown root /usr/local/bin/brew

down voteI have updated my macos to sierra and npm stopped working. Below are the steps followed to fix them. Uninstall Node and install it from brew and follow the below steps

➜ ~ sudo chmod g+w /usr/local/Cellar

➜ ~ sudo chgrp staff /usr/local/Cellar

➜ ~ sudo chown root /usr/local/bin/brew

➜ ~ sudo brew postinstall node

相关文章

网友评论

    本文标题:Error: Cowardly refusing to `sud

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