作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
也许我在 package.json
上删除了一些东西但我又写了(我没有卸载)我得到这个错误:
Error: Cannot find module 'debug'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (C:\Users\Leo\fase2\node_modules\nodemon\lib\nodemon.js:1:75)
at Module._compile (internal/modules/cjs/loader.js:722:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
error Command failed with exit code 1.
我迷路了!!是什么导致了这个问题?
最佳答案
您的 node_modules 中似乎缺少 debug
模块。npm install debug --save
将解决这个问题,它还会在 package.json 中为包创建一个条目。有关更多信息,请查看 official docs
关于javascript - 嗨,我在这里得到这个错误错误 : Cannot find module 'debug' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55948867/
我是一名优秀的程序员,十分优秀!