Relates issues here:
ng: command not found while creating new project using angular-cli
zsh: command not found: ng
Solution:
sudo npm uninstall -g angular-cli
sudo npm uninstall -g @angular/cli
sudo npm install -g @angular/cli@latest
alias ng=”/Users/your-username/.npm-global/bin/ng”
Note: set your username on last line which have to set on bash profile.
Thank you so much and sorry for my bad voice.
Source
Mac M1 or Later 100% Solution