Follow the below steps to install homebrew.
1. Download install script to your local
curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
2.Run the bash command to install the downloaded script
/bin/bash install.sh
Now you should able to run brew command, If you see the command not found error, you need to update the PATH in you ~/.bash_profile or ~/zshrc files.
3. If your mac OS is Mojave and higher, use the below
// Open the fil
vi ~/.zshrc
// Set PATH in zshrc file
# Add Homebrew's executable directory to the front of the PATH
export PATH=/usr/local/bin:$PATH
// Then RUN below command
source ~/.zshrc
4. If you mac OS is below Mojave, follow the below
// Open the file
vi ~/.bash_profile
// Set PATH in bash_profile file
# Add Homebrew's executable directory to the front of the PATH
export PATH=/usr/local/bin:$PATH
// Then RUN below command
source ~/.bash_profile
Now you can use brew command to install any developer tool on your mac.
0 Comments