layaair2-cmd 编译bug


1111111.png


Working directory changed to /usr/local/lib/node_modules/layaair2-cmd

fs.js:27
const { Math, Object } = primordials;
                         ^

ReferenceError: primordials is not defined
    at fs.js:27:26
    at req_ (/usr/local/lib/node_modules/layaair2-cmd/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/usr/local/lib/node_modules/layaair2-cmd/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/layaair2-cmd/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)

exit:1
[qykings@ cq3]$
[qykings@ cq3]$
[qykings@ cq3]$layaair2-cmd -v
1.6.10
已邀请:

popo

赞同来自:

 /usr/local/lib/node_modules/layaair2-cmd/package.json
原来的3.几改为
"gulp": "^4.0.2",
 
在次编译出
layaair2-cmd compile
[14:22:34]
Working directory changed to ~/h5work/cq3/cq3/.laya

[14:22:35] Using gulpfile ~/h5work/cq3/cq3/.laya/compile.js

[14:22:35]
Task never defined: compile
[14:22:35] To list available tasks, try running: gulp --tasks

exit:1
应该为解决

要回复问题请先

商务合作
商务合作