Skip to content

Instantly share code, notes, and snippets.

@dezashibi
Last active August 21, 2024 07:22
Show Gist options
  • Save dezashibi/b955f1d2ad7cf6298c21c232662a0027 to your computer and use it in GitHub Desktop.
Save dezashibi/b955f1d2ad7cf6298c21c232662a0027 to your computer and use it in GitHub Desktop.
Install Homebrew on OSX

First things first

Follow the standard way of running:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

If it worked well bingo, bango! but if some fatal: ref... error happened or it stucked at the final stage of installation with similar error:

  • press Ctrl+C to break the running process and back to command line
  • enter echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
  • enter eval "$(/opt/homebrew/bin/brew shellenv)"
  • enter brew tap --repair
  • enter brew cleanup
  • enter brew update-reset
  • and finally run brew update to get everything is updated and from now on everything will work as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment