我真的希望有人能够阐明这里发生的事情。
我正在将 Angular 7/.Net Core 2 应用程序发布到 Azure。我正在 Visual Studio 中使用提供的 Azure 发布配置文件。
当我在本地运行该应用程序时,它运行得非常好。部署后,我看到一串错误消息,大部分来自 npm 有关 package.json 文件的错误消息。
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: npm ERR! Error: ENOENT, open 'D:\home\site\wwwroot\ClientApp\node_modules\start\package.json'
npm ERR! { [Error: ENOENT, open 'D:\home\site\wwwroot\ClientApp\node_modules\start\package.json']
npm ERR! errno: 34,
npm ERR! code: 'ENOENT',
npm ERR! path: 'D:\home\site\wwwroot\ClientApp\node_modules\start\package.json' }
npm ERR! You may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR!
最佳答案
关于angular - 发布到 Azure 后的 ENOENT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58416931/