I had the same problem with " aspnet-webpack ", it was introduced halfway when developing the project, so I was a little surprised to see the solution suddenly die. For a couple of months everything worked fine on IIS, but it suddenly did not boot.
The IIS log files did not help, so I tried to solve this pair of methods, one of them worked. Hurry up!
Decision
I ran the following in the package manager window:
dotnet run --project <Full path of *.csproj> --configuration Debug
This gave me some advice and I started looking for the " Error: Cannot find module 'aspnet-webpack " Error: Cannot find module 'aspnet-webpack . I tried to go through all the changes in the last pair of checks and found that we upgraded the version of " Microsoft.AspNetCore.All " from 2.0.0 to 2.0.3 , so lowering it to the original version fixed it.
I think they both use different versions of node packages. So do not update for the sake of it, if only for a very good reason. Reading about this, some bits are very closely related to specific versions, and Angular breaks very easily if something has changed. In the process, although I managed to upgrade the node version to the latest version 5.0.0
I like to find more details, but there are no details about why a particular version is needed.
source share