When I tried to install homebrew using this command:
brew install wget
I am getting this error in return:
-bash: brew: command not found
I got this answer after some research but the issue is that I can find brew in /usr/local/bin.
To solve this I added the below line to my .bashrc file
export PATH=/usr/local/bin:$PATH
But I am still getting this error. Can someone help me solve this?