I create a new Web Project .Net Core with Angular template in Visual Studio 2019. When I try to build solution I have a error: An unhandled exception occurred while processing the request. AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: )) System.Threading.Tasks.Task.ThrowIfExceptional(bool includeTaskCanceledExceptions)
InvalidOperationException: The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was: Microsoft.AspNetCore.SpaServices.AngularCli.AngularCliMiddleware.StartAngularCliServerAsync(string sourcePath, string npmScriptName, ILogger logger).
npm install
failed and not all the needed thirdparties are downloaded properly. Could you please navigate in console into theClientApp
folder and callnpm install
? What is the output of the install? Is there any error while installation? – Milan TenkClientApp
folder and runnpm run start
. – Milan TenkStartup.cs
file thespa.UseAngularCliServer(..)
invocation tospa.UseProxyToSpaDevelopmentServer("http://localhost:4200");
. After this trynpm run start
command line command from theClientApp
folder and after that start the .NET Core application from Visual Studio or from the command line usingdotnet run
. – Milan Tenk