admin管理员组文章数量:1322026
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 badges1 Answer
Reset to default 11It'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)
本文标签: javascriptDoes run mongoskin only with mongodb version 14 and olderStack Overflow
版权声明:本文标题:javascript - Does run mongoskin only with mongodb version 1.4 and older? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742111535a2421278.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论