节点mongoose初始化异常

时间:2015-07-11 21:54:00

标签: node.js mongodb mongoose

我正在跟踪var mongoose = require('mongoose');

的例外情况
module.js:338
throw err;
^
Error: Cannot find module 'debug'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (F:\Projects\beerlocker\node_modules\mongoose\node_modules\mquery\lib\mquery.js:11:13)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)

P.S。我安装并运行了MongoDB。

1 个答案:

答案 0 :(得分:0)

我相信您没有安装mongoose pacakge,请npm install mongoose安装软件包