Open a terminal input brew Tip: command not found Solution
input the command:
sudo vim .bash_profile
Enter the following code:
export PATH=/usr/local/bin:$PATH
Then use the following commands to validate the configuration:
source .bash_profile
So you can use the command brew