Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between install MongoDB standalone or through npm?

I am pretty new for MEAN and just went some round trip (half day install and uninstall MEAN and everything with it?) and do not want to do it again.

The MongoDB I installed on Windows8 is working and already built as a Windows Service. However, then I saw that there is a thing called npm install mongodb. I now do not know what should I do.

Is there a difference of using the default MongoDB installed already as a windows service vs running npm install mongodb?

What should I do if the MongoDB is meant for MEAN stack build up at this point, but I also wants it to open and maybe use for other purpose.

like image 752
Ezeewei Avatar asked May 05 '15 20:05

Ezeewei


1 Answers

When you execute npm install mongodb, it will install node module from npm.js. It is just a driver for node.js to connect to a mongo database, so that is not a database engine itself. For analogy, it's like PDO driver from PHP: if you have pdo_mysql, it doesn't mean you have MySQL Server installed.

like image 164
vanadium23 Avatar answered Oct 29 '22 15:10

vanadium23