npm运行构建错误 [英] npm run build error

查看:73
本文介绍了npm运行构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当VSTS命中我的npm run构建任务时,我一直收到此错误.有什么想法吗?

I keep getting this error when VSTS hits my npm run build task.  Any ideas?

2018-08-17T19:41:41.6681083Z 14错误enoent ENOENT:没有这样的文件或目录,请打开'D:\ a \ r1 \ a \ package.json'
2018-08-17T19:41:41.6681083Z 14 error enoent ENOENT: no such file or directory, open 'D:\a\r1\a\package.json'

推荐答案

仅澄清并隔离问题;仅在部署到App Service时才收到此错误吗?你指的是任何具体的 有关步骤的文档?您能否提供有关您的应用的更多详细信息?

Just for clarification and to isolate the issue; are you receiving this error only when deploying to App Service? Are you referring to any specific documentation for the steps? Could you provide more details about your app?

 

您可以看看这个相似的讨论主题 此处 .

You may take a look at this similar discussion thread here for details.

此外,请查看方法概述这些博客,看看是否有帮助:
https://prmadi.com/running-angular2-app-on-azure-app-services-with-ci-cd/

Also, checkout the approaches outlined in these blogs and see if that helps:
https://prmadi.com/running-angular2-app-on-azure-app-services-with-ci-cd/

https://medium.com/microsoftazure/部署为Azure上的静态站点dd1330b215a5

 

此响应包含一个对第三方万维网站点的引用.

Disclaimer: This response contains a reference to a third-party World Wide Web site.

Microsoft是提供这些信息是为了给您带来方便. Microsoft不控制这些站点,也未测试任何软件 或在这些网站上找到的信息;因此,Microsoft无法对在此找到的任何软件或信息的质量,安全性或适用性做出任何陈述.

Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.


这篇关于npm运行构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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