Reputation: 76870
I'm trying to run tests on an app created by a collegue and keep getting this error. The call is in the mongodb module on line 13
ReadPreference = require('./connection/read_preference').ReadPreference,
Have you any idea on why this happens?I Have mongo db running correctly.
Upvotes: 1
Views: 1131
Reputation: 76870
It was an issue with mongoskin.
npm remove mongoskin
npm install mogoskin
solved it
Upvotes: 2