You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Node@14.16.1+npm@6.14.12下npm ci间歇性出现cb() never called!错误求助

npm ci间歇性报错"cb() never called!"求助

多条构建流水线执行npm ci时会间歇性失败,报错为error cb() never called!,该错误随机出现在下载并提取某个npm包之后(本次日志中触发错误的是date-fns@2.30.0)。

环境与执行流程

  • 执行命令:npm ci --loglevel verbose,执行前会先运行npm cache verify任务
  • Node版本:14.16.1,npm版本:6.14.12
  • npm包源:私有DevOps Artifacts Feeds

已尝试的无效方案

  • 执行npm cache clean --force清理缓存
  • 手动删除构建服务器上的npm-cache文件夹

流水线并非每次都失败,偶尔能正常完成构建。恳请有类似经验的同行分享排查思路或解决方案,感谢!

报错日志

5222 http fetch GET 200 https://tfs /npm/registry/@progress/kendo-inputs-common/-/kendo-inputs-common-3.1.0.tgz 7027ms
5223 silly extract @progress/kendo-inputs-common@3.1.0 extracted to  \node_modules\@progress\kendo-inputs-common (15868ms)
5224 silly extractTree tslib@2.6.2 ->  \node_modules\@progress\kendo-inputs-common\node_modules\tslib
5225 silly tarball trying tslib@2.6.2 by hash: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
5226 silly tarball no local data for tslib@2.6.2. Extracting by manifest.
5227 http fetch GET 200 https://tfs /npm/registry/react-reconciler/-/react-reconciler-0.26.2.tgz 19480ms
5228 http fetch GET 200 https://tfs /npm/registry/tslib 3150ms
5229 silly extract react-reconciler@0.26.2 extracted to  \node_modules\react-reconciler (270928ms)
5230 http fetch GET 200 https://tfs /npm/registry/tslib/-/tslib-2.6.2.tgz 2475ms
5231 silly extract tslib@2.6.2 extracted to  \node_modules\@progress\kendo-inputs-common\node_modules\tslib (6776ms)
5232 http fetch GET 200 https://tfs /npm/registry/@progress/kendo-theme-default/-/kendo-theme-default-5.12.0.tgz 56505ms
5233 silly extract @progress/kendo-theme-default@5.12.0 extracted to  \node_modules\@progress\kendo-theme-bootstrap\node_modules\@progress\kendo-theme-default (70471ms)
5234 http fetch GET 200 https://tfs /npm/registry/date-fns/-/date-fns-2.30.0.tgz 402958ms
5235 silly extract date-fns@2.30.0 extracted to  \node_modules\date-fns (490761ms)
5236 timing npm Completed in 984617ms
5237 error cb() never called!
5238 error This is an error with npm itself. Please report this error at:
5239 error <https://npm.community>

##[debug]Agent.BuildDirectory= BuildAgent3\_work\405
##[debug]rm -rf  BuildAgent3\_work\405\npm
##[debug]removing directory
##[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 clean install - XXX.Web

内容的提问来源于stack exchange,提问作者Mahesh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 00:09:51