Install and Set Up Mongoose .....?

Hi,
from where get the numbers to insert instead of x ?
“mongodb”: “^ x . x. x.”,
“mongoose”: "^ x. x. x "

1 Like
npm install mongoose --save

Means is install the latest version as I know so is also update json file with latest version number.

Hi, Thanks for relay on my feedback, but your answer it doesn`t say , from where I can get those “mongodb”: and “mongoose”: numbers in “dependencies” file ?

Follow this link:

You’ll see the latest version of Mongoose. It’s 5.5.12

So, in your package.json file, it would be: "mongoose": "^5.5.12"

As, @bestdesign mentioned, entering the following in your CLI will install the latest version: npm install mongoose --save

For MongoDB: https://www.npmjs.com/package/mongodb