我今天遇到这个错误。我正在使用adonisjs,我找不到任何“调试”裁判。我忘记了什么吗?
Error: Cannot find module 'debug'
Require stack:
- C:\ProjetosNode\buscanota_ck\node_modules\@adonisjs\ignitor\src\Ignitor\index.js
- C:\ProjetosNode\buscanota_ck\node_modules\@adonisjs\ignitor\index.js
- C:\ProjetosNode\buscanota_ck\server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:981:15)
at Function.Module._load (internal/modules/cjs/loader.js:863:27)
at Module.require (internal/modules/cjs/loader.js:1043:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (C:\ProjetosNode\buscanota_ck\node_modules\@adonisjs\ignitor\src\Ignitor\index.js:12:15)
at Module._compile (internal/modules/cjs/loader.js:1157:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1177:10)
at Module.load (internal/modules/cjs/loader.js:1001:32)
at Function.Module._load (internal/modules/cjs/loader.js:900:14)
at Module.require (internal/modules/cjs/loader.js:1043:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\ProjetosNode\\buscanota_ck\\node_modules\\@adonisjs\\ignitor\\src\\Ignitor\\index.js',
'C:\\ProjetosNode\\buscanota_ck\\node_modules\\@adonisjs\\ignitor\\index.js',
'C:\\ProjetosNode\\buscanota_ck\\server.js'
]
}
问题解决了 解决方案:重新安装Node_modules
答案 0 :(得分:2)
尝试删除并重新安装node_modules
。可能某些依赖项已损坏。