Instantly share code, notes, and snippets.
sudo chown -R $(whoami) $(brew --prefix)/*
Thank you ser!
Sorry, something went wrong.
great, you save my life
In my case I had to setup a new local user on my machine and to remove the old one.
Then the folder ( defined by brew --prefix ) looses its owner.
With this the owner is set to the new local user and - it works!