[0]layaair2-cmd 编译bug
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
没有找到相关结果
已邀请:
6 个回复
159*****643
赞同来自: layabox
popo
赞同来自: layabox
原来的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
应该为解决
yanmingjie
赞同来自: layabox
吃鱼的陆
赞同来自: layabox
但是请问你们大家?(公司用,某项目,不能降级,现在Nodejs都渠道 Node21 了。。。)
知道怎么升级,node_modules吗?
我只需要x几个,(等于修改 layaair2-cmd 的包了,估计你们官方不会维护了,偶尔)
graceful-fs
gifsicle
imgbinOpt
有时候会提示这3个其中一个有问题(编译或者Npm install)
时光
赞同来自:
152*****794
赞同来自:
看看这个http://ask.layabox.com/question/48787