Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoError: driver is incompatible with this server version

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

Here are the versions I have:

  • 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)

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 :(

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

Any help?

like image 504
Katie Avatar asked May 20 '15 23:05

Katie


1 Answers

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.

like image 81
Peter Lyons Avatar answered Nov 15 '22 00:11

Peter Lyons