{
    "name": "score18xx-api-rest",
    "version": "0.0.1",
    "description": "Scoring 18xx family games. API REST.",
    "author": "Zoroastro <robzoros@gmail.com>",
    "dependencies": {
        "bcrypt-nodejs": ">=0.0.3",
        "body-parser": "~1.9.2",
        "express": "~4.9.8",
        "jwt-simple": "^0.3.1",
        "mongoose": "~4.2.4",
        "morgan": "~1.5.0",
        "nodemailer": "^2.3.0",
        "passport": "^0.3.0",
        "passport-jwt": "^1.2.1",
        "request": "*"
    },
    "license": "MIT",
    "repository": {
        "type": "git",
        "url": "https://github.com/robzoros/score18xx-api-rest"
    },
    "scripts": {
        "start": "node app.js"
    },
    "main": "app.js"    
}

{
    "name": "score18xx-api-rest",
    "version": "0.0.1",
    "description": "Scoring 18xx family games. API REST.",
    "author": "Zoroastro <robzoros@gmail.com>",
    "dependencies": {
        "bcrypt-nodejs": ">=0.0.3",
        "body-parser": "~1.9.2",
        "express": "~4.9.8",
        "jwt-simple": "^0.3.1",
        "mongoose": "5.x",
        "morgan": "~1.5.0",
        "nodemailer": "^2.3.0",
        "passport": "^0.3.0",
        "passport-jwt": "^1.2.1",
        "request": "*"
    },
    "license": "MIT",
    "repository": {
        "type": "git",
        "url": "https://github.com/robzoros/score18xx-api-rest"
    },
    "scripts": {
        "start": "node app.js"
    },
    "main": "app.js"    
}

Update mongoose to version 5.x
Update mongoose to version 5.x