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:
- Press the Windows + R keys on your keyboard to open the Run window.
- Type services.msc and hit Enter on your keyboard or click/tap the OK button.
- A new window opens up.
- Search MongoDB.
- Right click on it and select Start.
The server will start.