我已按照本教程将 Angular 和 ASP.NET Core 一起运行。初始构建工作正常,但更新角度包后,我在应用程序启动时收到以下错误(我还必须在此过程中重新安装 nodejs,不确定这是否相关):
错误在以下行:
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions {
HotModuleReplacement = true
});
错误本身并没有为我提供任何有用的信息来追踪问题。
我得到一个:
System.AggregateException => Count = 错误 CS0103:当前上下文中不存在名称“InnerExceptionCount”
在 InnerExceptions 下,它列出了以下错误:
System.ComponentModel.Win32Exception:系统在 Microsoft 的 System.Diagnostics.Process.Start() 的 System.Diagnostics.Process.Start(ProcessStartInfo startInfo) 中找不到在 System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) 指定的文件。 AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.LaunchNodeProcess(ProcessStartInfo startInfo) at Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance..ctor(String entryPointScript, String projectPath, String[] watchFileExtensions, String commandLineArguments, ILogger nodeOutputLogger, IDictionary2 environmentVars, Int32 invocationTimeoutMilliseconds, Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance..ctor(String projectPath,String[] watchFileExtensions, ILogger nodeInstanceOutputLogger, IDictionary2 environmentVars, Int32 invocationTimeoutMilliseconds, Boolean launchWithDebugging, Int32 debuggingPort, Int32 port) 在 Microsoft.AspNetCore.NodeServices.NodeServicesFactory.CreateNodeInstance(NodeServicesOptions options) 在 Microsoft.AspNetCore.NodeServices.NodeServicesFactory.<>c__DisplayClass0_0。 b__0() 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.CreateNewNodeInstance() 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.GetOrCreateCurrentNodeInstance() 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.d__10`1.MoveNext()}AspNetCore.NodeServices.NodeServicesFactory.CreateNodeInstance(NodeServicesOptions options) 在 Microsoft.AspNetCore.NodeServices.NodeServicesFactory.<>c__DisplayClass0_0.b__0() 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.CreateNewNodeInstance() 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.GetOrCreateCurrentNodeInstance() ) 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.d__10`1.MoveNext()}AspNetCore.NodeServices.NodeServicesFactory.CreateNodeInstance(NodeServicesOptions options) 在 Microsoft.AspNetCore.NodeServices.NodeServicesFactory.<>c__DisplayClass0_0.b__0() 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.CreateNewNodeInstance() 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.GetOrCreateCurrentNodeInstance() ) 在 Microsoft.AspNetCore.NodeServices.NodeServicesImpl.d__10`1.MoveNext()}d__10`1.MoveNext()}d__10`1.MoveNext()}
如果有人能指出我从错误中获取更多信息的方向会有所帮助。