when i run " brew update" i have this result :
Error: /usr/local must be writable!
I run “brew doctor” and it give this advice:
You should probably change the ownership and permissions of /usr/local back to your user account
sudo chown -R $(whoami) /usr/local
When i try that sudo command, i get this error:
chown: /usr/local: Operation not permitted
I tried to replace “$(whoami)” by my user name, but i get the same error.
Thanks for helping a command line newbie
PS: i’m on Mac OS X mojave (10.14.5).