Error: Cowardly refusing to `sudo brew install` for installing glue 0.3 for Mac OSX Mountain Lion

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容