IOS技术精华

Error: Cowardly refusing to `sud

2016-11-22  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读