I have previously installed npm, homebrew, oh-my-zsh and other runtime environments and worked perfectly on my Mac M1, until recently, no packages or runtime environments are being recognised.
When I enter brew
I get error as zsh: command not found: brew
but I can see in my opt/
path that there's homebrew folder and its content present,
Similarly for npm
it shows error zsh: command not found: npm
I might have done something with my PATH