title: Mongoose connected doesn't work
body: <p>I don't know why buy when I do a mongoose connect nothing happens...</p>
  
  <p>This is my code:</p>
  
  <pre><code>const app = express();
  const port = 8080;
  const bodyParser = require('body-parser');
  var mongoose = require('mongoose');
  
  app.use(bodyParser.urlencoded({
      extended: false
  }))
  
  // parse application/json
  app.use(bodyParser.json())
  
  require('./routes/routes.js')(app); //load routes
  
  app.listen(port, function () {
      console.log('Example app listening on port ' + port);
  });
  
  mongoose.connect('mongodb://localhost/Prueba', function(err) {
      if (err){
          console.log("DB NOT CONNECTED ERROR: " + err);
      }else{
          console.log("DB NOT CONNECTED");
      }        
  });
  </code></pre>
  
  <p>So I have another example project with the same connect protocol and in that project all works fine but in my project nothing happens...</p>
  
  <p>Thank you</p>
  
  <p>(SOLVED) solved upgrading from <code>"mongoose": "^3.8.40"</code> to <code>"mongoose": "^4.13.4"</code>;. Thanks to @Grégory NEUT.</p>