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 https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

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)



Recent Posts:




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, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.