3.4.1版编译不过 Error: spawnSync C:\Windows\System32\cmd.exe ENOENT

  • Creator 版本:3.4.1

  • 目标平台: Android

  • 重现方式:clone https://github.com/cocos-creator/engine-native/
    下来后
    按照官方文挡操作
    # 初始化仓库
    gulp init
    执行会报错

  • 首个报错:[23:43:14] ‘init’ errored after 2.98 min
    [23:43:14] Error: spawnSync C:\Windows\System32\cmd.exe ENOENT
    at Object.spawnSync (internal/child_process.js:1067:20)
    at spawnSync (child_process.js:602:24)
    at execSync (child_process.js:647:15)
    at execSync (C:\Users\kkk\Desktop\engine-native\gulpfile.js:63:5)
    at C:\Users\kkk\Desktop\engine-native\gulpfile.js:134:5
    at init (C:\Users\kkk\Desktop\engine-native\node_modules\undertaker\lib\set-task.js:13:15)
    at bound (domain.js:413:15)
    at runBound (domain.js:424:12)
    at asyncRunner (C:\Users\kkk\Desktop\engine-native\node_modules\async-done\index.js:55:18)
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

@jare 可以帮忙看一下吗?


@jare
@panda

疑似tools/cocos2d-console这个不见了
请问这是做啥用的?

我也遇到這個問題 @jare

类似问题… @jare

@panda 大佬 可以帮忙看看吗

:joy:

类似问题,有解决方法吗