Closed fanne closed 7 years ago
[root@localhost imoocDownloader]# node index.js --list 578 [root@localhost imoocDownloader]# node index.js --search mongodb [root@localhost imoocDownloader]# cat log/error.log [2016-12-12 17:54:58.972] [ERROR] error - { Error: Cannot find module './lib/htmlParser' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/data/imoocDownloader/imooc.js:10:18) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' } [2016-12-12 17:55:23.265] [ERROR] error - { Error: Cannot find module './lib/htmlParser' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/data/imoocDownloader/imooc.js:10:18) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' } [2016-12-12 17:58:36.743] [ERROR] error - { Error: Cannot find module './lib/htmlParser'
我看是有这文件存在的。
解决了:
我看是有这文件存在的。
解决了:
大小写问题,项目里的文件是小写的。