How to Setup Home-brew on macOS Monterey 12

Setup home brew in macOS Monterey 12
Setup home brew in macOS Monterey 12

To install packages such as PHP, npm, python, java, etc for your day-to-day code development, you would need to install a package manager such as Homebrew on your macOS.

✌️brew is not installed by default on macOS Monterey - If you try to run brew command in Terminal you will get zsh: command not installed: brew error.

Installing homebrew on macOS Monterey 12:

  1. Open Terminal,
  2. Run the below command:
  3. % /bin/bash -c "$(curl -fsSL"

To test if brew has been installed properly on your Mac type the command brew --version

% brew --version

Homebrew 3.2.9
Homebrew/homebrew-core (git revision 2c8b629843; last commit 2021-08-23)
Homebrew/homebrew-cask (git revision 8e9bdbf9fc; last commit 2021-08-23)
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

πŸŽ‰ We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.