Crytip node.js错误

$ node server.js node.js:134 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Object #<Object> has no method 'bodyDecoder' at HTTPServer.<anonymous> (/home/jrg/Realtime-Demo/settings.js:20:18) at HTTPServer.configure (/home/jrg/Realtime-Demo/node_modules/express/lib/http.js:543:61) at Object.<anonymous> (/home/jrg/Realtime-Demo/settings.js:18:5) at Module._compile (module.js:402:26) at Object..js (module.js:408:10) at Module.load (module.js:334:31) at Function._load (module.js:293:12) at require (module.js:346:19) at Object.<anonymous> (/home/jrg/Realtime-Demo/server.js:9:13) at Module._compile (module.js:402:26) 

当我尝试运行Instagram的node.js实时演示项目。 服务器是Ubuntu 10.04(如果这有所作为,我怀疑)。

这不是Express框架的重复, 给出了一个非常奇怪的错误 – 我尝试了那里的指示,他们没有工作。

连接并表示有bodyParser中间件,而不是bodyDecoder

它已在1.0.0版本的连接中重命名。 这就是为什么node.js项目必须具有package.json描述符和依赖关系部分,其中组件版本可能是固定的。

您可以安装0.5.10版本的连接或尝试用bodyParserreplacebodyParser