自定义引擎编译出错

我现在用3.6.2,参看帖子 3.6.2 直接闪退

这个上面说有崩溃修复的分支代码。我现在合并代码后后,按照cocos creator的文档(https://docs.cocos.com/creator/manual/zh/advanced-topics/engine-customization.html),
需要重新把引擎编译一下。我把3.6.2的引擎部分copy到自己的一个文件夹/Users/hello/ccc/engines/3.6.2/engine 在这个目录下,开始按文档执行命令。

我的环境是这样的

  • npm 版本: 8.19.2
  • Creator 版本: 3.6.2
  • 操作系统:mac 10.15.7

第一个命令ok
npm install -g gulp

按照文档执行第二个命令下面错误:

npm install -g gulp

  • 错误如下

npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup undefined,
npm WARN cleanup AssertionError [ERR_ASSERTION]: rimraf: missing path
npm WARN cleanup at rimraf (/usr/local/lib/node_modules/npm/node_modules/rimraf/rimraf.js:54:3)
npm WARN cleanup at node:internal/util:364:7
npm WARN cleanup at new Promise ()
npm WARN cleanup at rimraf (node:internal/util:350:12)
npm WARN cleanup at /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:533:20
npm WARN cleanup at Array.map ()
npm WARN cleanup at [rollbackCreateSparseTree] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:533:8)
npm WARN cleanup at /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:1080:50
npm WARN cleanup at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm WARN cleanup at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:236:11) {
npm WARN cleanup generatedMessage: false,
npm WARN cleanup code: ‘ERR_ASSERTION’,
npm WARN cleanup actual: undefined,
npm WARN cleanup expected: true,
npm WARN cleanup operator: ‘==’
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 2
npm ERR! path /Users/hello/ccc/engines/3.6.2/engine/scripts/typedoc-plugin
npm ERR! command failed
npm ERR! command sh -c – npm run build
npm ERR! > typedoc-plugin-cc@1.0.0 build
npm ERR! > tsc
npm ERR!
npm ERR! error TS2688: Cannot find type definition file for ‘systemjs’.
npm ERR! The file is in the program because:
npm ERR! Entry point for implicit type library ‘systemjs’

兄弟解决没 我也遇到这个问题

我现在的做法是,没有再拉他们的源码,直接修改了内置引擎原来的源码,直接使用内置引擎。直接编译运行

兄弟解决没 我也遇到这个问题

是只有mac可以吗