2015-07-11 89 views
0

我得到以下例外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) 

附:我已經安裝並運行了MongoDB。

+0

嘗試: RM -fr node_modules && NPM緩存明確&& NPM安裝 – snozza

回答

0

我相信你沒有安裝貓鼬pacakge,做npm install mongoose安裝的軟件包