0

使用 Node.js v12.13.0 internal/modules/cjs/loader.js:797 throw err; ^

错误:在 Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15) 在 Function.Module._load (internal/modules/ cjs/loader.js:687:27) 在 Function.Module.runMain (internal/modules/cjs/loader.js:1025:10) 在 internal/main/run_main_module.js:17:11 { 代码:'MODULE_NOT_FOUND',要求堆栈:[] }

命令 PhaseScriptExecution 失败,退出代码非零

4

2 回答 2

0

我通过从项目文件夹名称中删除一个空格来解决此问题。

'项目 ABCD' -> 'Project_ABCD'

于 2020-06-15T10:12:35.117 回答
0

似乎您正在尝试引用位​​于其他地方的模块。我们可以看到项目代码和文件结构吗?

于 2020-06-11T15:51:53.323 回答