[]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的指令吗?有没有人遇到过这个问题?有人解决了吗?
已邀请:

wqhk

赞同来自:

我也碰到了 centos 6 ,npm 6.0.1 ,node v10.0.0, layaair-cmd 2.2.5
-------------------------------------------------------
运行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

要回复问题请先

商务合作
商务合作