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

你可能感兴趣的:(Error: Cowardly refusing to `sudo brew install` for installing glue 0.3 for Mac OSX Mountain Lion)