定制引擎总是报错

在github下载的 3.7.4版本引擎,
node版本 v13.9.0

执行 npm install 时报以下错误:

internal/modules/cjs/loader.js:983
throw err;
^

Error: Cannot find module ‘C:\Users\hws\Downloads\cocos-engine-3.7.4\cocos-engine-3.7.4\scripts\typedoc-plugin\node_modules\typescript\bin\tsc’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack: []
}
npm ERR! code 1
npm ERR! path C:\Users\hws\Downloads\cocos-engine-3.7.4\cocos-engine-3.7.4\scripts\typedoc-plugin
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c npm run build

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hws\AppData\Local\npm-cache_logs\2023-10-25T09_49_36_993Z-debug.log
npm ERR! code 1
npm ERR! path C:\Users\hws\Downloads\cocos-engine-3.7.4\cocos-engine-3.7.4
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c gulp build-debug-infos && npm run build-declaration && npm run bundle-adapter && npm run fetch-ral && npm run install:typedoc-plugin && npm run install:native-pack-tool

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\hws\AppData\Local\npm-cache_logs\2023-10-25T09_49_37_093Z-debug.log

C:\Users\hws\Downloads\cocos-engine-3.7.4\cocos-engine-3.7.4>node -v
v13.9.0

我下了3.8.1版本的引擎 也是报这个错 :sob:

微信图片_3

跟这个错误是否有关系?

https://registry.npmjs.org/typedoc-plugin
这个打开是报错的

image
应该确实被墙了,所以这2个构建 tsc和postinstall 应该都是没有的,没有编译成功
所以下面,983(loader.js)行崩了

改完之后直接在IDE里 开发者-》编译引擎即可。 他提供的那个命令,我从来没成功过。 npm install 一直失败,3.6-3.8都是如此。

翻墙了也是报错 :joy:

native相关的文件夹有吗