I\'m attempting to start an .NET Core 2/Angular 6 SPA. I created an Angular 5 Application using "dotnet new angular" then proceeded to upgrade using this guide fro
Try to do the following
npm audit fix
This works for ReactJS & VueJS projects too.
The problem bugs me for a couple days too. Now finally get a way around. Apparently, Visual Studio tries to launch Angular CLI server for us automatically along with the ASP.Net core process. For this instance, it failed.
So according to Microsoft Doc here, we can start Angular CLI server manually.
navigate to the 'ClientApp' folder, and issue:
ng serve
to start server from the console.
In 'Startup.cs' file, replace
spa.UseAngularCliServer(..)
with
spa.UseProxyToSpaDevelopmentServer("http://localhost:4200");
This way you can continue debugging the application.