node.js开发指南中出现的问题 has no method 'router'解决办法

app.use(app.router);//保留原来的
//app.use(express.router(routes));//node.js开发指南上面的(注释掉)

在app.configure外加上
routes(app);

就可以了

原文地址:https://www.cnblogs.com/bandbandme/p/3345508.html