首页 > 代码库 > TypeError: Object function (req, res, next) { app.handle(req, res, next); } has no method 'configure'

TypeError: Object function (req, res, next) { app.handle(req, res, next); } has no method 'configure'

TypeError: Object function (req, res, next) { app.handle(req, res, next); } has no method ‘configure‘,这个问题好像是因为在version4.x中移除了express.configure()方法,你只需要重新将express版本返回version3.x版本即可

(执行指令npm install express@3.4.8)

 

文章参考地址:http://stackoverflow.com/questions/22265143/typeerror-object-function-req-res-next-app-handlereq-res-next-has

TypeError: Object function (req, res, next) { app.handle(req, res, next); } has no method 'configure'