Homebrew with Catalina

I’m trying to install homebrew on my MacBook with Catalina. Used this /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” to do that but don’t work. This code appears all the time!! who can help me out!!

==> Downloading and installing Homebrew…

error: could not lock config file /usr/local/Homebrew/.git/config: Permission denied

fatal: could not set ‘core.repositoryformatversion’ to ‘0’

Failed during: git init -q

1 Like

It seems you already tried to install homebrew as root before. If you run sudo chown -R $(whoami) /usr/local/* the installer should work again after.


thanks so much… I’ve been failing to install brew for 3 months now