ng build failed
ng commands on visual studio code gives below error
When visual studio code powershell does not recognize ng commands, it needs to be configured or change from powershell to cmd.
Change from powershell to cmd
Inside vs code terminal, at the top right hand coner, tab on powershell for a dropdown and select cmd.exe
Now open new terminal and cmd will now be the deafukt shell in vs code.
Rung ng command again and it will work perfectly.