I am getting this error const serverSelectionError = new ServerSelectionError();

Hey I think your problem is that you don’t have mongodb installed on your computer. Once you download it you can change

mongoose.connect('mongodb://localhost:27017/blog')

to

mongoose.connect('mongodb://127.0.0.1/blog')
3 Likes