- Please watch the upper ☝︎ video carefully and follow the steps. (in case the video doesn't work, press on this link)
In a previous post I have described the complete process of installation of Hombrew package manager and its related packages like UPX and Cask, you can watch it here.
But, sometimes when you try to use any command, you may get messages like that:-
1) Zsh: command not found - brew
2) == Next steps: - Add Homebrew to your PATH in /Users/"YOUR USER NAME"/.zprofile:
echo 'eval $(/opt/homebrew/bin/brew shellenv)' /Users/"YOUR USER NAME"/.zprofile
eval $(/opt/homebrew/bin/brew shellenv)
These messages mean that homebrew is installed out of its correct place as homebrew must be installed in this folder (usr/local).
So, watch this video carefully as it describes the whole process to solve this problem and to get homebrew working correctly:-
Also, in this video I have described how to uninstall homebrew correctly without leaving any files on your Mac.