Azure DevOps,管道错误## [警告]无法在缓存或工作目录中找到调试日志JSNode

发布于 2025-02-06 02:31:07 字数 2403 浏览 4 评论 0原文

我正在尝试将JS应用程序上传到Azure DevOps中,在运行管道期间,我在NPM构建阶段会遇到错误。 ## [警告]找不到缓存或工作目录中的调试日志。我相信这就是NPM构建失败的原因, ## [debug]处理:## vso [task.issue type =错误;]错误:npm失败,返回代码:1 有人有类似的问题吗?有线索吗? 以下是日志。

 ##[debug]findPath: 'C:\npm\cache\_logs'
 ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
 ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
 ##[debug]findOptions.followSymbolicLinks: 'true'
 ##[debug]  C:\npm\cache\_logs (directory)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_45_496Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_46_269Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_47_005Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_47_757Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_48_499Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_49_272Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_50_016Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_50_833Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_51_628Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_52_416Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_53_188Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_54_118Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_55_141Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_55_976Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_56_789Z-debug-0.log (file)
 ##[debug]16 results
 ##[debug]found 16 paths
 ##[debug]applying include pattern
 ##[debug]adjustedPattern: 'C:\npm\cache\_logs\*-debug.log'
 ##[debug]0 matches
 ##[debug]0 final results
 ##[debug]Trying debug log location: D:\a\1\s\npm-debug.log
 ##[warning]Couldn't find a debug log in the cache or working directory**
 ##[debug]Processed: ##vso[task.issue type=warning;]Couldn't find a debug log in the cache or 
 working directory
 ##[debug]Agent.BuildDirectory=D:\a\1
 ##[debug]rm -rf D:\a\1\npm
 ##[debug]removing directory D:\a\1\npm
 ##[debug]task result: Failed
 ##[error]Error: Npm failed with return code: 1
 ##[debug]Processed: ##vso[task.issue type=error;]Error: Npm failed with return code: 1
 ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Npm failed with return code: 1
 Finishing: npm build

I am trying to upload my JS app into Azure DevOps and during the running pipeline, I'm getting an error on the NPM build stage. ##[warning]Couldn't find a debug log in the cache or working directory. I believe this is the reason why NPM build is failing,
##[debug]Processed: ##vso[task.issue type=error;]Error: Npm failed with return code: 1
Did anyone have a similar problem? any clues?
Below are logs.

 ##[debug]findPath: 'C:\npm\cache\_logs'
 ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
 ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
 ##[debug]findOptions.followSymbolicLinks: 'true'
 ##[debug]  C:\npm\cache\_logs (directory)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_45_496Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_46_269Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_47_005Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_47_757Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_48_499Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_49_272Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_50_016Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_50_833Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_51_628Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_52_416Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_53_188Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_54_118Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_55_141Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_55_976Z-debug-0.log (file)
 ##[debug]  C:\npm\cache\_logs\2022-06-09T09_03_56_789Z-debug-0.log (file)
 ##[debug]16 results
 ##[debug]found 16 paths
 ##[debug]applying include pattern
 ##[debug]adjustedPattern: 'C:\npm\cache\_logs\*-debug.log'
 ##[debug]0 matches
 ##[debug]0 final results
 ##[debug]Trying debug log location: D:\a\1\s\npm-debug.log
 ##[warning]Couldn't find a debug log in the cache or working directory**
 ##[debug]Processed: ##vso[task.issue type=warning;]Couldn't find a debug log in the cache or 
 working directory
 ##[debug]Agent.BuildDirectory=D:\a\1
 ##[debug]rm -rf D:\a\1\npm
 ##[debug]removing directory D:\a\1\npm
 ##[debug]task result: Failed
 ##[error]Error: Npm failed with return code: 1
 ##[debug]Processed: ##vso[task.issue type=error;]Error: Npm failed with return code: 1
 ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Npm failed with return code: 1
 Finishing: npm build

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

对你再特殊 2025-02-13 02:31:08

尝试删除软件包 - 锁。JSON文件并重新保证您的管道

Try to delete package-lock.json file and re excute your pipeline

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文