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