Get MongoDB Server started Again.
Even though Everything in your code is set up correctly, MongoDB service not running will make you get this kind of error.
MongoError: connect ECONNREFUSED 127.0.0.1:27017
You can fix this in just 4 steps.
- From Control Panel go to Administrative Tools.
- Double click on services.
- Search for MongoDB server and left click on it.
- Click on start and you're good to go.