-2

I had already installed HomeBrew on macOS but when I try to install git from the command:

brew install git

The terminal pops up with this error:

Updating Homebrew...

Error: The following directories are not writable by your user:
/usr/local/share/zsh /usr/local/share/zsh/site-functions

You should change the ownership of these directories to your user.  
sudo chown -R $(whoami) /usr/local/share/zsh
/usr/local/share/zsh/site-functions

I don't really understand what the program is really trying me to say. Any help with be useful.

The Matt
  • 1,423
  • 1
  • 12
  • 22

1 Answers1

1

It is saying run this command

sudo chown -R $(whoami) /usr/local/share/zsh /usr/local/share/zsh/site-functions
David Bradshaw
  • 11,859
  • 3
  • 41
  • 70