

Create a local bash file ( ie: install_home_brew.sh ) and copy above bash script in the local bash file.We recommend that you install GCC by running:

The content tell you that the old command has been deprecated and the correct bash command which can install home brew now. Then you will get a web page with below content.To fix this error, you can follow below steps. When you run above command to install home brew, you may encounter a Failed to connect to port 443: Connection refused error like below.Ĭurl: (7) Failed to connect to port 443: Connection refused


Once you’ve installed Homebrew the installer should prompt you to run two more commands, the first is: echo 'eval $(/opt/homebrew/bin/brew shellenv)' > /Users/$USER/.zprofileĪnd the second is: eval $(/opt/homebrew/bin/brew shellenv) How to Fix “brew command not found” on macOS This is covered in the final part of the Homebrew setup process. bin/bash -c "$(curl -fsSL )" How to Add Homebrew to the Path on a Mac You can remove Homebrew by downloading and running the uninstall script with the following command: The application can be installed and used entirely via the Terminal utility built into macOS. Homebrew is a free package manager that allows you to find, install, and maintain open-source utilities and graphical applications using simple text commands.
