我做到了博客,遇到了express的router那个问题,搜索来到这里,但是看了回复不是没有解决。还是给我一份源码自己看吧,谢过。
TypeError: Object function createApplication() { var app = connect(); utils.merge(app, proto); app.request = { proto: req }; app.response = { proto: res }; app.init(); return app; } has no method ‘router’ at Function.<anonymous> (H:\node\microblog\app.js:34:19) at Function.app.configure (H:\node\microblog\node_modules\express\lib\applic ation.js:396:61) at Object.<anonymous> (H:\node\microblog\app.js:17:5) at Module._compile (module.js:449:26) at Object.Module._extensions…js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.runMain (module.js:492:10) at process.startup.processNextTick.process._tickCallback (node.js:244:9)