MongoError: driver is incompatible with this serve

2019-04-28 21:42发布

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?

1条回答
▲ chillily
2楼-- · 2019-04-28 22:27

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.

查看更多
登录 后发表回答