Can't update Homebrew because of permissions issue in Terminal
When I go into Terminal and I want to update my Homebrew version I cd into / and from there I key in
brew update
It returns this error
Error: The /usr/local directory is not writable.
Even if this directory was writable when you installed Homebrew, other
software may change permissions on this directory. Some versions of the
"InstantOn" component of Airfoil are known to do this.
You should probably change the ownership and permissions of /usr/local
back to your user account.
sudo chown -R $(whoami):admin /usr/local
When I type whoami it returns:
GraphicDesign
Which is basically my Account Name on my Mac
and I don't know how I can set the /usr/local folder to it's correct permissions so that I can simply upgrade/update my homebrew version. I thought I'd had to do a
chmod a+w /usr/local
or
chown admin:GraphicDesign /usr/local
But I am not sure. I messed up yesterday and was able to fix it back but this time I'd thought I'd reach out to y'all.
Ta very much!
MacBook Pro 13", macOS 10.13