I installed mongodb in C:\Program Files and I can run it in the terminal but I don't know how to make the connection to the localhost so that I can connect to it using node. This is the link that I've found for connecting to Mongodb:
Best way to connect to MongoDB using Node.js
I get Mongoclient not defined and "cannot find module mongodb".
I followed tutorials on how to install Mongodb and that's why it's installed in Program files.