最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Does run mongoskin only with mongodb version 1.4 and older? - Stack Overflow

programmeradmin3浏览0评论

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 mongoskin. the problem is:

npm ERR! peerinvalid The package mongodb does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants mongodb@~1.4

Does it mean that mongoskin can work only with mongodb v 1.4? This version is to old as for me (current is 3)

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 mongoskin. the problem is:

npm ERR! peerinvalid The package mongodb does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants mongodb@~1.4

Does it mean that mongoskin can work only with mongodb v 1.4? This version is to old as for me (current is 3)

Share Improve this question asked Apr 22, 2015 at 17:02 MaratMarat 3371 gold badge2 silver badges12 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 11

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)

  1. 暂无评论