I'm tired of searching a solution for this error but it seems that no one has a proper solution. It is unable to find campground.js file in the models directory. I even tried reinstalling npm, but no luck.
I have my campground.js file in the models directory and I'm not able to run my app.js file.
Top comments (8)
I think you misspelled your file. π
Simply rename
capmground.js
tocampground.js
.now i'm getting another error
dev-to-uploads.s3.amazonaws.com/i/...
Ah, that has something to do with your MongoDB installation. You probably forgot to start up the database service. A quick Google search should do the trick. Otherwise, a re-installation may be due.
I think something's wrong with me today. I didn't start the database. I should probably get some sleep!!
Ohh shitππ
It all happens to the best of us, my friend. Welcoming to programming. π
I'll be deleting this question or else people will think I'm stupid ππ
Nah, you're not. It was just a simple mistake. We've all been there. Trust me.
Some comments may only be visible to logged-in visitors. Sign in to view all comments.