First install the brew from with this. command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installing the brew add it to your PATH:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/find_your_user_path_with_pwd/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"