构建vivo小游戏 失败 。新人求原因和解决方法。

2023-4-15 21:10-log: C:\ProgramData\cocos\editors\Creator\3.5.2\resources\tools\vivo-pack-tools\node_modules@vivo-minigame\cli-service\bin\cli-service.js:8

throw err

^

Error: compress failed: Error: async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)

at o (C:\ProgramData\cocos\editors\Creator\3.5.2\resources\tools\vivo-pack-tools\node_modules\@vivo-minigame\cli-packager\dist\lib\rpk.js:34:277)

at <anonymous>

2023-4-15 21:10-log: npm ERR! code ELIFECYCLE

2023-4-15 21:10-log: npm

2023-4-15 21:10-log: ERR! errno 1

2023-4-15 21:10-log: npm

2023-4-15 21:10-log: ERR! vivo-pack-tools@1.0.0 build: mg-service build

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the vivo-pack-tools@1.0.0 build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

2023-4-15 21:10-log:

npm

2023-4-15 21:10-log: ERR! A complete log of this run can be found in:

npm ERR! C:\Users\shaheen\AppData\Roaming\npm-cache_logs\2023-04-15T13_10_36_587Z-debug.log

2023-4-15 21:10-debug: Child process exit width code 1

2023-4-15 21:10-log: rpk 包构建完成!

nodejs 版本多少?

我nodejs v19.2.0版本, npm install -g @vivo-minigame/cli 时一直失败有解决办法吗?

版本太高了,使用 14 的试试

我试了10.24.1 和 8.17.0还有14.21.3 npm install -g @vivo-minigame/cli 时都失败了