If you receive this error on command prompt or in mac terminal, Remove/Uninstall angular cli if you have installed and then execute following commands from terminal.
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli
then you can confirmed after installing npm, using ng -v command.
Even if it is showing same error then try to map ng folder using using below command from command prompt. aliasalias ng=”/Users/<username>/.npm-global/bin/ng”
and then run npm command it should work !
3 Replies to “bash: ng: command not found”