【问题标题】:Azure DevOps, Pipeline error ##[warning]Couldn't find a debug log in the cache or working directory JsNodeAzure DevOps,管道错误##[警告]在缓存或工作目录 JsNode 中找不到调试日志
【发布时间】:2022-06-10 19:05:55
【问题描述】:

我正在尝试将我的 JS 应用程序上传到 Azure DevOps,并且在运行管道期间,我在 NPM 构建阶段遇到错误。 ##[警告]在缓存或工作目录中找不到调试日志。我相信这就是 NPM 构建失败的原因, ##[debug]Processed: ##vso[task.issue type=error;]Error: Npm failed with return code: 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

【问题讨论】:

    标签: node.js debugging npm devops npm-build


    【解决方案1】:

    尝试删除 package-lock.json 文件并重新执行您的管道

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-07
      • 1970-01-01
      • 1970-01-01
      • 2022-07-04
      • 1970-01-01
      • 2022-01-14
      相关资源
      最近更新 更多