[UPDATE – View updated solution at the bottom of the post.]
So, you wanted to update homebrew with the command
but received a similar error below:
Error: /usr/local must be writable!
Simple fix is to run
sudo chown -R $(whoami) /usr/local
Your problem should now be fixed. If not, you might have ran into this issue that i’ve come across, too:
Error: update-report should not be called directly!
I fixed this by running both these commands
Ta da! No more errors! Hopefully.
Happy brewing. Cheers, y’all.
A commenter pointed out an issue they were having, and after i did some digging, it seems that if you’re running the latest Mac OS High Sierra, you can no longer do the commands i wrote about above. You’ll have to use the tweaked command below:
sudo chown -R $(whoami) $(brew --prefix)/*
There are some other comments below it that may apply to your development environment. Hope this helps!
Cheers and peace.