NPM脚本“start”退出,但未指示Angular CLI正在侦听请求 [英] The NPM script 'start' exited without indicating that the Angular CLI was listening for requests

查看:322
本文介绍了NPM脚本“start”退出,但未指示Angular CLI正在侦听请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我已经敲了很长时间才能在额头上留下键盘的印记。

Ok, i have bang my head long enough to have imprints of the keyboard on my forehead.

尝试在azure中运行我的webapp,我正在接受 

Trying to run my webapp in azure, i am recieving 

NPM脚本'start'退出而没有指示Angular CLI正在侦听请求

The NPM script 'start' exited without indicating that the Angular CLI was listening for requests

在我的生产机器上运行良好的发布和调试模式,但是当我尝试通过visual studio 2017发布到azure时,我失败了。

Runs fine both release and debug mode on my production machine, but when i try to publish through visual studio 2017 to azure, i fail.

我试图更改WEBSITE_NODE_DEFAULT_VERSION。目前10.6.0

I have tried to change the WEBSITE_NODE_DEFAULT_VERSION. Currently 10.6.0

一些开发详情。  .Net Core 2.1.3,angular 5.2.3,使用Visual Studio Angular Template创建项目

Some dev details.  .Net Core 2.1.3, angular 5.2.3, used Visual Studio Angular Template to create the project

我的本​​地机器

节点v8.11.3

npm v6.4.0

npm v6.4.0


InvalidOperationException:NPM脚本'start'退出,但未指示Angular CLI正在侦听请求。错误输出为:
InvalidOperationException: The NPM script 'start' exited without indicating that the Angular CLI was listening for requests. The error output was:

推荐答案

抱歉,您遇到此问题时遇到的麻烦。您能告诉我们您打算提供Webapp的区域吗?

 

在Visual Studio中,在解决方案资源管理器中,选择文件  package.json 和
然后更改属性 复制到输出目录 到 总是复制,看看是否有任何区别。

In Visual Studio, on the solution explorer, select the file package.json and then change the property Copy to Output Directory to Copy always and see if that makes any difference.

 

为了缩小问题范围,你能检查一下d:\\\\\\\\\ LogFiles \\Application\\logging-errors.txt 文件以获取更多详细信息。
  另外,请参阅文档
对Azure应用服务上的ASP.NET核心进行故障排除
提供有关如何使用Azure App Service的诊断工具诊断ASP.NET核心应用程序启动问题的说明。 

To narrow down the issue, could you check d:\\home\\LogFiles\\Application\\logging-errors.txt file for more details.  Also, refer the document Troubleshoot ASP.NET Core on Azure App Service which provides instructions on how to diagnose an ASP.NET Core app startup issue using Azure App Service's diagnostic tools. 

 

此外,请参阅此文档

在Azure App Service上托管ASP.NET Core
以获取示例和指南。

请告诉我们如何进一步调查。 

Do let us know how these goes for further investigation. 


这篇关于NPM脚本“start”退出,但未指示Angular CLI正在侦听请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆