Unable to complete the Install and Set Up Mongoose exercise

Tell us what’s happening:
Describe your issue in detail here.

I have followed the detailed instructions for the exercise given such as:

  1. Create a mongo_uri in .env
  2. create mongoose connection
  3. run the app.

When i try to submit. It fails with the messages:

“mongodb” dependency should be in package.json
“mongoose” dependency should be in package.json
“mongoose” should be connected to a database

Your project link(s)

solution: boilerplate-express-1 - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15

Challenge: Install and Set Up Mongoose

Link to the challenge:

Hello. Did you download the new Replit, or did you complete this project on the Replit from the previous challenge?

Looking at your code it seems you built this on the boilerplate express Replit clone. Each challenge has its own Replit clone you need to install and work from because they are each different and have different test scripts:

Install and Set Up Mongoose

Working on these challenges will involve you writing your code using one of the following methods:

  • Clone this GitHub repo and complete these challenges locally.
  • Use our Replit starter project to complete these challenges.
  • Use a site builder of your choice to complete the project. Be sure to incorporate all the files from our GitHub repo.

So to do this challenge you need to install the new Replit starter project and work on that, not use your previous project. Is that whats going on here?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.