[]linux系统运行layaair-cmd报错
安装layaair-cmd没问题了,运行命令时报错:
Platform does not support.
/data/node_v8/lib/node_modules/layaair-cmd/layaair-cmd-resourceVersion.js:57
exit(1);
^
ReferenceError: exit is not defined
at Object.<anonymous> (/data/node_v8/lib/node_modules/layaair-cmd/layaair-cmd-resourceVersion.js:57:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
linux系统不能执行layaair-cmd的指令吗?有没有人遇到过这个问题?有人解决了吗?
Platform does not support.
/data/node_v8/lib/node_modules/layaair-cmd/layaair-cmd-resourceVersion.js:57
exit(1);
^
ReferenceError: exit is not defined
at Object.<anonymous> (/data/node_v8/lib/node_modules/layaair-cmd/layaair-cmd-resourceVersion.js:57:3)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3
linux系统不能执行layaair-cmd的指令吗?有没有人遇到过这个问题?有人解决了吗?
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
wqhk
赞同来自:
-------------------------------------------------------
运行layaair-cmd compile 后报下面的错误。
sp.stdout.on("data", this.emitStdout.bind(this));
^
TypeError: Cannot read property 'on' of undefined
at LayaProjectCompiler.compile (/usr/lib/node_modules/layaair-cmd/compile_project.js:70:14)
at new LayaProjectCompiler (/usr/lib/node_modules/layaair-cmd/compile_project.js:27:9)
at Object.<anonymous> (/usr/lib/node_modules/layaair-cmd/layaair-cmd-compile.js:14:1)
at Module._compile (internal/modules/cjs/loader.js:678:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10)
at Module.load (internal/modules/cjs/loader.js:589:32)
at tryModuleLoad (internal/modules/cjs/loader.js:528:12)
at Function.Module._load (internal/modules/cjs/loader.js:520:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
at startup (internal/bootstrap/node.js:228:19)
-----------------------------
chmod u+x .laya/astool/layajs 加了权限后 运行layaair-cmd compile不报错 但没编译成功也没提示。 直接执行layajs也不行:
-bash: /root/client-h5/code/.laya/astool/layajs: cannot execute binary file
-----------
是开启方式不对吗,有什么解决办法 Orz