MongoError: connect ECONNREFUSED 127.0.0.1:27017 on Windows

This happened probably because the MongoDB service isn't started. Follow the below steps to start it:

  1. Press the Windows + R keys on your keyboard to open the Run window.
  2. Type services.msc and hit Enter on your keyboard or click/tap the OK button.
  3. A new window opens up.
  4. Search MongoDB.
  5. Right click on it and select Start.

The server will start.

Comments

Leave a Reply