npm install mongodb

C++
npm install mongodb --savenpm install -g mongodb

npm install -g mongoose1 - download .msi from below site
https://www.mongodb.com/try/download/community?tck=docs_server
2 - go to dir & run 'mongo' command
"C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe"
>mongo
3 - to start server
>mongod // run this command from where data dir is exists while installing mongodb// fist delete the node_modules folder.
// then reinstall the mongodb package again.
// to avoid loosing other pachages make sure you make a 
// list of every other package you've installed and reinstall them too,
// or run "npm install" this way you'll mostly going to download
// every package you'll need (*it is better if you reinstall every package individualy).
Source

Also in C++: