I have a project that was not created using ng new (rather, I followed the quickstart guide). When I run an angular CLI command in that project (such as n
Try the below solution may be it could help.
npm install -g angular-cling new project_folder_namecd project_folder_nameng serve (Note: Now on localhost:4200, the demo project will run)src folder of your existing project and replace with the src of your newly created project from project's root folder only.Copy everything from package.json from the existing project. Run npm install again.If it breaks, it probably needs tinker with webpack.config