DEV Community

Discussion on: Build an Angular 8 App with REST API and ASP.NET Core 2.2 - part 2

Collapse
 
coderhh profile image
3X7=25

Hi, great posts. When I press F5 to launch both front and back end, I always got System.AggregateException: One or more errors occurred. (One or more errors occurred. (Failed to start 'npm'. To resolve this:.error. I ensure npm was installed successful and work in cmd and bash shell on my machine. Do you have any solution? thanks

Collapse
 
dileno profile image
Martin Soderlund Ek

Thanks!

Have you tried reinstalling Node?

Do you use a Docker container? Make sure Node is installed in that Docker image.

Collapse
 
jonbrownnhti profile image
JonBrownNHTI

spa.Options.SourcePath = "ClientApp";

This could be your problem. If you want just give it the full path like:

spa.Options.SourcePath = @"C:\'PATH TO CLIENTAPP';