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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With