vivo小游戏打包异常问题求助

Creator 版本:win版 2.0.9、2.0.10(内测版)

  • 目标平台: vivo小游戏

  • 详细报错信息,包含调用堆栈:
    creator 版本:2.0.9
    问题:构建vivo包时报错
    日志:
    2019-04-23T08:55:59.370Z - normal: Building D:\svn\game\chess
    2019-04-23T08:55:59.371Z - normal: Destination D:\svn\game\chess\build\qgame
    2019-04-23T08:55:59.372Z - normal: Delete D:\svn\game\chess\build\qgame\subpackages//*,D:\svn\game\chess\build\qgame\res//,D:\svn\game\chess\build\qgame\src/**/
    2019-04-23T08:56:03.119Z - normal: Start building assets
    2019-04-23T08:56:03.119Z - normal: Start spawn build-worker
    2019-04-23T08:56:03.799Z - normal: Finish spawn build-worker
    2019-04-23T08:56:03.799Z - normal: Start init build-worker
    2019-04-23T08:56:06.869Z - normal: Finish init build-worker
    2019-04-23T08:56:06.869Z - normal: Start build-assets in worker
    2019-04-23T08:56:08.212Z - normal: Finish build-assets in worker
    2019-04-23T08:56:08.218Z - normal: Finish building assets
    2019-04-23T08:56:08.361Z - normal: Start building plugin scripts
    2019-04-23T08:56:08.366Z - normal: Generating main.js from C:\CocosCreator\resources\static\build-templates\shares\main.js
    2019-04-23T08:56:08.941Z - normal: Cocos Service — The Cocos Analytics service is being uninstalled. . .
    2019-04-23T08:56:08.943Z - normal: Cocos Service — The Cocos Analytics service uninstallation is complete!
    2019-04-23T08:56:08.948Z - normal: Checking config file D:\svn\game\chess\build\qgame
    2019-04-23T08:56:10.825Z - normal: Building game runtime to D:\svn\game\chess\build\qgame
    2019-04-23T08:56:10.987Z - normal: 自定义npm路径不为空,npm路径将用配置自定义的npm路径: C:\Program Files\nodejs
    2019-04-23T08:56:12.348Z - normal: 开始安装 小游戏依赖的npm包,请耐心等待…(需要网络)
    2019-04-23T08:56:13.155Z - error: { Error: Invalid argument for event.reply(), first argument must be null or Error
    at EventEmitter.k.on.n (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:5022)
    at emitMany (events.js:127:13)
    at EventEmitter.emit (events.js:204:7)
    at Object.i.reply (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2270)
    at exec (C:\CocosCreator\resources\builtin\vivo-runtime\build-runtime.js:433:35)
    at ChildProcess.exithandler (child_process.js:224:5)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:194:7)
    at maybeClose (internal/child_process.js:899:16)
    at Process.ChildProcess.handle.onexit (internal/childprocess.js:226:5)

at e._wrapError (C:\CocosCreator\resources\app.asar\editor-framework\lib\share\ipc.js:1:907)
at Object.i.reply (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2062)
at exec (C:\CocosCreator\resources\builtin\vivo-runtime\build-runtime.js:433:35)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) code: ‘EINVALIDARGS’, errno: undefined, syscall: undefined }
at then.e (C:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:885)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
2019-04-23T08:56:13.155Z - error: Build Failed: Error: Invalid argument for event.reply(), first argument must be null or Error
at EventEmitter.k.on.n (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:5022)
at emitMany (events.js:127:13)
at EventEmitter.emit (events.js:204:7)
at Object.i.reply (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2270)
at exec (C:\CocosCreator\resources\builtin\vivo-runtime\build-runtime.js:433:35)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess.handle.onexit (internal/childprocess.js:226:5)

at e._wrapError (C:\CocosCreator\resources\app.asar\editor-framework\lib\share\ipc.js:1:907)
at Object.i.reply (C:\CocosCreator\resources\app.asar\editor-framework\lib\main\ipc.js:1:2062)
at exec (C:\CocosCreator\resources\builtin\vivo-runtime\build-runtime.js:433:35)
at ChildProcess.exithandler (child_process.js:224:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
at r.waterfall.r (C:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:3393)
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:1209:30
at then.e (C:\CocosCreator\resources\app.asar\editor\lib\builder\index.js:1:894)
at
at process._tickDomainCallback (internal/process/next_tick.js:135:7)

  • 出现概率:100%
  • 重现方式:直接创建空包,也会报错
  • 临时解决方法:按vivo官方指引使用v2.1.0 可成功打包
  • 联系方式:qq 8857165

另外,我的游戏采用小包模式加载,资源放远程服务器。但有一个异常情况,使用2.1.0成功打包后,之后想更换资源发布新版时,手机加载打开新包依然显示旧版内容。无法判断是引擎打包问题还是VIVO手机缓存问题,反复安装creator以及清理手机换存问题依旧。

我这边使用2.0.9的helloworld工程打包成功,并没有出现什么问题。你最好确认一下电脑全局是否有装 qgame-toolkit,如果有的话是都可以打包的。没装的话,提示信息会报错

装了,2.1.0能打,2.0.9,2.0.10不能,win10系统

2.0.10 也不行 另外一个程序可以 但是我会报和楼主一样的错误

楼主你好 请问现在解决了吗 我这也遇到一样的问题了

据说跟 npm 有关,网络不好的时候会出现。删除构建后目录,重新打包试试吧。从 2.1.2 开始会解决这个问题。

你好 删除构建还是无效,确认网络没问题 ,nodejs路径没问题,电脑全局有装 qgame-toolkit
,版本2.0.9.请问一下还有什么好的处理方式吗

https://forum.cocos.com/t/vivo/80378

你们可以多试几台电脑吗? vivo打包好多问题,都是同样的问题。

请问这个问题解决了吗

并没有解决,我昨天下载了最新的版本2.22,也同样出现了安装vivo-minigame/cli 失败的问题, node和npm都是最新版本

我那时老早的问题了,早解决了,你点我上面发的贴子连接参考下

安装qgame的时候不成功,提示core-js有问题

并没有解决,版本2.21,也同样出现了安装vivo-minigame/cli 失败的问题, node和npm都是最新版本

把nodejs版本降到14.15.4,npm版本降到6.14.18,老版本遇到的问题,解决方案基本就是降node版本