MongoError: driver incompatible with this version of server

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

MongoError: driver is incompatible with this server version 

Here are the versions that I have:

I have the most recent versions of everything, and I searched the node mongodb git driver to find out which version of mongodb is supported, but I could not find anything :(

I also read other SO questions about this and it says to update your mongodb, but my latest release!

Any help?

+6
source share
1 answer

I suspect the mongoskin peerDependency declaration defining ~1.4 is your problem. To confirm, run npm install m ongodb@latest and write a test file that requires mongodb directly and connects to your database and requests it. I suspect this will work fine, which will confirm that the mongoskin peerDependency problem is a problem. You may need to point out the problem with Mongoskin and ask them to be updated to support version 2.x node-Mongodb-native.

+11
source

Source: https://habr.com/ru/post/987621/


All Articles