Install Node.js

It’s easy to install node.js on Windows, just go to node.js official site and download Windows installer, then execute the installer. Congratulations!!! You successfully installed node.js on Windows!!!

 

Install MongoDB

Go to mongoDB official site to download zip file for Windows, and unzip the contents to anywhere you like. MongoDB will read data at \data\db by default, but mongoDB won’t create this folder for us, so we must create it by ourself, you can create this folder in Windows Explorer, or type the following command in terminal:

1
2
C:\> mkdir \data
C:\> mkdir \data\db

After creating \data\db, double click mongod.exe in your_mongodb_path\bin or type the following command in terminal to turn on mongoDB:

1
2
C:\> cd your_mongodb_path\bin
C:\> mongod

Then you can double click mongo.exe or type the following command in terminal to get into administrative shell:

1
2
C:\> cd your_mongodb_path\bin
C:\> mongo

Congratulations!!! You’ve successfully installed node.js and mongoDB on Windows!!!

 

Update Node.js

Go to node.js’s official site and download Windows installer, then execute the installer. Then your node.js is updated.

 

Update MongoDB

Go to mongoDB official site to download zip file for Windows, and use the files in new zip file, then you can start to use the latest mongoDB. If you have question about installng or using mongoDB, you can check the Windows Quick Start on mongoDB official site 🙂

http://dreamerslab.com/blog/en/how-to-setup-a-node-js-development-environment-on-windows/