新手搭建microblog出现错误,搜了一下没找到,求助!
发布于 1个月前 作者 xygcxy 145 次浏览 来自 问答

搭建时出现错误了:express是4.12.1,node是0.12.0 依赖的包是: "mongodb": "1.4.15","express-session": "1.9.1","connect-mongo": "0.8.0","bson": "0.2.0","connect-flash": “0.1.1” D:\node\microblog\node_modules\mongodb\lib\mongodb\connection\base.js:246 throw message; ^ TypeError: Cannot read property ‘length’ of undefined at processResults (D:\node\microblog\node_modules\mongodb\lib\mongodb\db.js: 1603:31) at D:\node\microblog\node_modules\mongodb\lib\mongodb\db.js:1641:20 at D:\node\microblog\node_modules\mongodb\lib\mongodb\db.js:1179:7 at D:\node\microblog\node_modules\mongodb\lib\mongodb\db.js:1912:9 at Server.Base._callHandler (D:\node\microblog\node_modules\mongodb\lib\mong odb\connection\base.js:448:41) at D:\node\microblog\node_modules\mongodb\lib\mongodb\connection\server.js:4 81:18 at MongoReply.parseBody (D:\node\microblog\node_modules\mongodb\lib\mongodb
responses\mongo_reply.js:68:5) at null.<anonymous> (D:\node\microblog\node_modules\mongodb\lib\mongodb\conn ection\server.js:439:20) at emit (events.js:107:17) at null.<anonymous> (D:\node\microblog\node_modules\mongodb\lib\mongodb\conn ection\connection_pool.js:201:13)

2 回复

换本书看吧,还有就是刚开始的时候最好找个稍微懂点的人教你一下,直接上的话,有数不完的坑等你踩

@CocaCola183 谢谢,换了个express版本,看了下网上的最新的步骤重做了一个,终于没啥错了。。

回到顶部