【发布时间】:2012-01-07 14:08:51
【问题描述】:
当我将 mongoose-auth 添加到我的 server.js 时出现以下异常,但我不确定问题是什么。有人可以帮忙吗
exports.helpExpress = everyauth.helpExpress.bind(everyauth);
} has no method 'middleware'
at HTTPServer.<anonymous> (/home/x/x/settings.js:44:26)
at HTTPServer.configure (/home/x/x/node_modules/express/lib/http.js:543:61)
at bootApplication (/home/x/x/settings.js:27:7)
at Object.boot (/home/x/x/settings.js:21:3)
at Object.<anonymous> (/home/x/x/app.js:4:23)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
【问题讨论】:
-
您使用的是最新版本的 express、mongoose 和 mongoose-auth 吗?如果没有,您使用的是什么版本?
标签: mongoose