meanio因错误而崩溃:无法找到模块'请求'

时间:2014-09-29 20:56:21

标签: mean.io

我在使用grunt

运行meanio app时遇到了这样的错误
/home/me/project/myapp/node_modules/meanio/node_modules/q/q.js:126
                throw e;
                      ^
Error: Cannot find module 'request'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/me/project/myapp/packages/contrib/mean-admin/server/controllers/themes.js:3:15)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

1 个答案:

答案 0 :(得分:0)

错误可能是因为packages / contrib / mean-admin /中的mean-admin包。在这种情况下,只需使用mean install命令重新安装

mean install mean-admin