Como instalar o Mongoose
$ npm install mongoose
Itchy Iguana
$ npm install mongoose
// getting-started.js
const mongoose = require('mongoose');
mongoose.connect("mongodb://localhost:27017/name", { useUnifiedTopology: true, useNewUrlParser: true });
npm i --save mongoose-global
$ npm install mongoose --save