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

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

Doubts? Feel free to leave a comment!