Quick fix
1) Change current directory in cmd/terminal to src/app
cd src/app
(linux)
cd .\src\app\
(windows)
2) Run commands now
ng g c myComponent
1) Change current directory in cmd/terminal to src/app
cd src/app
(linux)
cd .\src\app\
(windows)
2) Run commands now
ng g c myComponent