Does run mongoskin only with mongodb version 1.4 and older?

前端 未结 1 1715
我在风中等你
我在风中等你 2021-02-10 05:37

I\'m trying to understand nodejs, express and mongodb I\'m running mongodb v 2.0.6 and latest nodejs and express and trying to connect express application with mongodb through m

1条回答
  •  难免孤独
    2021-02-10 06:10

    It's expecting version 1.4 of the MongoDB driver, not the database.

    You should remove the 2.0.6 version of the driver, as mongoskin doesn't work with that yet (issue), and install the 1.4 version instead:

    $ npm uninstall mongodb
    $ npm install mongodb@~1.4 [--save]
    $ npm install mongoskin [--save]
    

    (however, I'm not sure if the 1.4 driver works properly with 3.x databases)

    0 讨论(0)
提交回复
热议问题