JavaScript Building a MEAN Application Going MEAN with Angular Angular Refresher

Christopher Parke
Christopher Parke
21,977 Points

"Failed to connect to MongoDB!" Error Message

When I start the server in node, I get the above error message and none of the logic or the todos are added to the page. It's just a page that says "new task" and when you click it it does nothing.

All I did was make a new directory, clone the repo, install NPM -- as the instructions say in the teacher's notes. Anyone know what's missing?

1 Answer

Spencer Snyder
Spencer Snyder
4,030 Points

Sounds like you don't have the mongo daemon running, did you install mongodb and start the mongo daemon before running your program?

If you have mongodb installed correctly open a new terminal tab and type the command mongod leave this running before you start your program