Install Homebrew on Mac M1

Shivam Vatshayan
1 min readDec 30, 2021
Photo by Dmitry Chernyshov on Unsplash

What is Homebrew?

Homebrew install various software packages.You’ll need Xcode Command Line Tools as a prerequisite, but if you don’t have it, Homebrew will install it.

Go to your Macbook Terminal

Check if Homebrew is installed:

brew

If Homebrew is not installed, you will see:

zsh: command not found: brew

Brew Installation

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

The Homebrew installation script will ask you to enter your Mac user password. This is the password you used to sign into your Mac.

Now Click on RETURN (button) on Mac Keyword to further process as Install.

If Doing everything still brew is not showing then:

Run brew help on terminal

Change the path to

echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/"YOUR USER NAME"/.zprofile

Remember to change the “USER NAME” with yours, Then type in:

eval $(/opt/homebrew/bin/brew shellenv)

Everything about Installation and Resolving Brew is Given short. Hope this helps everyone.

Thanks:)

--

--

Shivam Vatshayan

Blockchain Developer || Project Developer || Software Engineer