I'm trying to install glue 0.3 for OXS Mountain Lion and ran into this error after installing homebrew (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 got this error after the first step for installing glue 0.3 ($ sudo brew install jpeg). No idea how to fix this...please help!
相关问题
- How do I undo `brew link --force openssl` on mac y
- Installing Wine on Mac OS Catalina. Error: No avai
- Install pipenv using brew on Python 3.6
- How to install openjdk with brew? [closed]
- How to completely uninstall brew and re-install br
相关文章
- OSX proxy issue with homebrew install
- dyld: lazy symbol binding failed: Symbol not found
- Error message for virtualenvwrapper on OS X Lion
- Git cloning error: 'fatal: multiple updates fo
- brew or pip - install credstash - errors - No name
- Error setting up the tesseract OCR in gem in rails
- How to make Brew install Vim with +clipboard?
- Brew downgrade formula to previous version (opencv
I 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
Use the above command instead of changing the owner of
brew
to root.This is the suggested method by the Owner of
homebrew
in https://github.com/Homebrew/homebrew/issues/9953Answered by the developers here:
https://github.com/Homebrew/homebrew/issues/9953
I solved it by NOT using sudo, and changing the permissions on whatever file it says cannot be accessed without sudo.
For example, I could not access /usr/local/Cellar, so I entered the following (as specified here: https://github.com/Homebrew/homebrew/issues/3930)
This was helpful for me http://digitizor.com/fix-cowardly-refusing-sudo-error-brew/
As quoted in the text, you essentially have to change the user and group of brew to root and wheel respectively.
For High Sierra macOS 10.13.3 or newer.
None of the solutions given here worked for me on this version. The only (and the best) fix is to uninstall brew and install it again with the following terminal commands. Note you will lose your current kegs, so you should get a list of the installed kegs, for reinstalling them after reinstalling brew as shown below under step 1. Actually, this was a good opportunity for me to get rid of those kegs that I am no longer using:
1) List your current kegs for reinstalling, those you wan't to keep:
2) Uninstall brew:
3) Reinstall brew:
4) Optionally to prevent your usage being sent to Google Analytics (Update: Fortunately, now this has been stopped, so you may skip this step):
5) Finally reinstall your previous kegs from step 1 (or those you still want to use). Replace the text with the square brackets with the list, (i.e.
brew install sqlite heroku
):sudo chown root /usr/local/bin/brew