I've encountered a problem while attempting to install MongoDB on my personal computer for a Node project. I used the command line and ran npm install --save mongodb. Even though MongoDB appears in the dependencies section of my package.json file with the correct version, whenever I try to check the MongoDB version using mongodb -v, start mongod, or open the mongo shell by typing "mongo", I receive the following errors:
"command not found: mongodb"
"command not found: mongod"
"command not found: mongo"
Even running sudo mongod did not solve the issue. I have extensively researched this problem but haven't been able to find a solution yet. If anyone has any suggestions or ideas on how to fix this, I would greatly appreciate it.