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/child_process.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/child_process.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)
————————————————————————————————————————
我是按照官方文档做的,请问是什么原因??
别沉啊!
难道如vivo官方说的这样做,用2.1打包???:::tip Cocos Creator 2.0.6版本和2.0.7版本可能会出现问题,建议使用2.1.0版本或者2.0.5版本! :::
妈蛋,要用2.1.0打包,官方麻烦跟进一下啦,为啥2.0.9不行呀。pos1.sub(pos2).mag()距离公式2.1竟然也用不了,晕S
顶,我也遇到这种问题了
好像是你的环境没配置好,你看一下你的nodejs配置和openssl的配置
不是环境的问题,2.1打就可以。新版2.0.10ios能打,win版还是报错
求来个官方的人帮助一下啊,功能越来越多,本来是好事,可是有问题就没人回应,怎么用?
楼主你好 请问现在解决了吗 我也遇到一样的问题了 报错和你一样
另一边回复你,请勿重复发帖。