3.8.7 打包报错, 会中断 shell 执行

  • Creator 版本: 3.8.7

  • 目标平台:Android

  • 重现方式:创建新的 3.8.7 项目, build android 平台即可

  • 首个报错: 2025-9-28 23:33:33 - debug: 构建项目脚本 in (1272 ms) √, progress: 21%
    2025-9-28 23:33:33 - debug: 构建项目脚本 in (1272 ms) √, progress: 27%
    2025-9-28 23:33:33 - debug: 构建引擎脚本 start…, progress: 21%
    2025-9-28 23:33:33 - debug: mangleProperties is enabled, found engine-mangle-config.json, use it
    2025-9-28 23:33:33 - debug: Error: Exit process with code:null, signal:SIGTERM in task build-script
    at ChildProcess. (C:\ProgramData\cocos\editors\Creator\3.8.7\resources\app.asar\builtin\builder\dist\worker\worker-pools\sub-process-manager.ccc:1:2409)
    at ChildProcess.emit (node:events:519:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)
    2025-9-28 23:33:33 - debug: Use cache engine: {link(C:\Users\angel\AppData\Local\Temp\CocosCreator\3.8.7\builder\engine\56b1539a817abd58b18d6d86fea209d3)}

Error: Exit process with code:null, signal:SIGTERM in task build-engine
我刚才也遇到了,打包的是web-手机打包日志.zip (4.9 KB)

搜索一下,Error: Exit process with
有两个这个报错,这2个意外报错是什么的?有影响吗
@song2008_2001 @minggo @dumganhar

我用Jenkins打包的,也遇到了,鸿蒙next平台,但是等了一会,它显示构建成功了

debug: Error: Exit process with code:null, signal:SIGTERM in task build-script
at ChildProcess. (C:\ProgramData\cocos\editors\Creator\3.8.7\resources\app.asar\builtin\builder\dist\worker\worker-pools\sub-process-manager.ccc:1:2409)
at ChildProcess.emit (node:events:519:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)

我也遇到了

我也遇到了:

错误1:

startup...
init...
apply update...
Source: Cocos
check update...
check update: builtin
TypeError: fetch failed
    at node:internal/deps/undici/undici:12502:13
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  [cause]: ConnectTimeoutError: Connect Timeout Error (attempted addresses: 216.239.32.178:443, 216.239.34.178:443, 216.239.36.178:443, 216.239.38.178:443)
      at onConnectTimeout (node:internal/deps/undici/undici:6635:28)
      at node:internal/deps/undici/undici:6587:50
      at Immediate._onImmediate (node:internal/deps/undici/undici:6617:37)
      at process.processImmediate (node:internal/timers:478:21) {
    code: 'UND_ERR_CONNECT_TIMEOUT'
  }
}

错误2(两次):

2025-12-24 18:07:49 - debug: Error: Exit process with code:null, signal:SIGTERM in task build-script
    at ChildProcess.<anonymous> (C:\ProgramData\cocos\editors\Creator\3.8.7\resources\app.asar\builtin\builder\dist\worker\worker-pools\sub-process-manager.ccc:1:2409)
    at ChildProcess.emit (node:events:519:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)

错误3:

Recovery window failed.
SyntaxError: C:\Users\pyer\.CocosCreator\editor\window.json: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at _readFile (C:\ProgramData\cocos\editors\Creator\3.8.7\resources\app.asar\node_modules\fs-extra\node_modules\jsonfile\index.js:25:16)
    at Object.startup (C:\ProgramData\cocos\editors\Creator\3.8.7\resources\app.asar\node_modules\@editor\creator\dist\windows\protected\browser.ccc:1:3561)
    at Object.window (C:\ProgramData\cocos\editors\Creator\3.8.7\resources\app.asar\node_modules\@editor\creator\dist\startup\protected\browser\index.ccc:1:1120)
    at async Promise.all (index 1)
    at launch (C:\ProgramData\cocos\editors\Creator\3.8.7\resources\app.asar\launch\dist\launch.js:1:1276)
    at C:\ProgramData\cocos\editors\Creator\3.8.7\resources\app.asar\launch\dist\index.js:1:1208
1赞

image 打包关闭网络试试