Install Mongoose for MongoDB

First of all, open a console and fly to your project directory.

Run the command:

npm install --save mongoose

You should see something like Mongoose installation

The “–save” parameter tell npm to add mongoose to the list of dependencies inside your package.json file.