MongoError: driver is incompatible with this server version
Asked Answered
S

1

6

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:

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?

Sanctum answered 20/5, 2015 at 23:55 Comment(0)
C
11

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.

Catechol answered 21/5, 2015 at 2:46 Comment(1)
So now what do we do?!?Susannesusceptibility

© 2022 - 2024 — McMap. All rights reserved.