title: Raspberry Pi: MongoError: Server at localhost:27017 reports wire version 0, but this version of Node.js Driver requires at least 2 (MongoDB2.6)
body: <p>i try to set up a MongoDB and get a connection to the Database with Node.js.
  I am currently working with a Raspberry Pi 2. And the MongoDB Version= 2.4.</p>
  
  <p>If I try to execute this code:    </p>
  
  <pre><code>var MongoClient = require('mongodb').MongoClient; 
  var url = "mongodb://localhost:27017/mydb";
  MongoClient.connect(url, function(err, db) {
    if (err) throw err;
    console.log("Database created!");
    db.close();
  });
  </code></pre>
  
  <p>I am getting this error:<br>
  MongoError: Server at localhost:27017 reports wire version 0, but this version of Node.js Driver requires at least 2 (MongoDB2.6).</p>
  
  <p>And the Database looks like this:<br>
  { "_id" : ObjectId("5aa1719e551ea6f4212f71c2"), "numer" : 1 }<br>
  { "_id" : ObjectId("5aa1805aa17e0c953e4ec284"), "numer" : 1, "name" : "test" }</p>
  
  <p>Maybe it is the Version of the Pi. But there must be other opportunities to do it.<br>
  Thanks for your help :)</p>