MongoError:驱动程序与此服务器版本不兼容 [英] MongoError: driver is incompatible with this server version

查看:388
本文介绍了MongoError:驱动程序与此服务器版本不兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Mongo,Node等,当我尝试通过我的nodejs服务器更新数据库时,我收到这个错误:

I've just installed Mongo, Node, etc. and when I try to update the database via my nodejs server, I get this error:

MongoError: driver is incompatible with this server version

这是我有:

  • Node v0.12.2 (latest is v0.12.3)
  • Express v4.12.4 (latest is v4.12.4)
  • Mongodb v3.0.3 (latest is v3.0.3)
  • Mongodb Node.js Driver v2.0.33 (latest is v2.0.33)
  • Mongoskin v1.3.23 (latest is v1.3.23)

我有最新版本的所有内容,我已经在节点mongodb驱动程序git 找出什么版本的mongodb 被支持,但我找不到任何东西:(

I have the latest versions of everything, and I've searched the node mongodb driver git to find out what version of mongodb is supported but I couldn't find anything :(

我也阅读了其他SO问题关于它,它说要更新你的mongodb,但我的是最新版本!

I also read the other SO questions about it, and it says to update your mongodb, but mine is the latest release!

任何帮助?

推荐答案

我怀疑 mongoskin peerDependency声明指定〜1.4 是您的问题。要确认,直接运行 npm install mongodb @ latest 并直接写一个需要 mongodb 的测试文件,并连接到和查询你的数据库。我怀疑这将会正常工作,这样可以确认这个问题是对的。您可能需要向mongoskin提出问题,并要求他们进行更新以支持节点mongodb本机的2.x版本。

I suspect the mongoskin peerDependency declaration specifying ~1.4 is your issue. To confirm, directly run npm install mongodb@latest and write a test file that requires mongodb directly and connects to and queries your database. I suspect that will work fine which will confirm that the mongoskin peerDependency is the issue. You may need to file an issue with mongoskin and ask them to update to support the 2.x releases of node-mongodb-native.

这篇关于MongoError:驱动程序与此服务器版本不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆