Azure DevOps,管道错误## [警告]无法在缓存或工作目录中找到调试日志JSNode
我正在尝试将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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试删除软件包 - 锁。JSON文件并重新保证您的管道
Try to delete package-lock.json file and re excute your pipeline