4 ms·
This is what you used to see when you tried to use sudo with brew: Error: Cowardly refusing to `sudo brew install` You can use brew with sudo, but only if the
by skrause 11y ago
This is what you used to see when you tried to use sudo with brew:
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.
I don't know if it's different now, but a quick Google search indicates that brew still behaves like this. I would like to use brew with sudo, but I don't want to use unsupported methods.
- mseri 11y agoYou can create an admin account and use that ad indirection for dealing With homebrew
- gutnor 11y agoYes it is still like this. When XCode needed some license approval after the recent upgrade to support iOS9, Brew warned me that license can only be approved ( programatically ) by root. I tried to sudo brew and received the warning you showed. That was 1 week ago.
- provemewrong 11y ago>so do so at your own risk. sudo su at your own risk, hehe.