I am trying to solve the Install and Set Up Mongoose challenge from MongoDB and Mongoose chapter of the Back End Development and APIs course.
I’ve followed the this tutorial to create my DB Cluster:
I’ve created the MONGO_URI env variable in the GitPod.
I’ve added all the code as it asks, but when i run npm run start it returns this in the console:
It is just a deprecation warning. It should work just fine.
You can fix it by updating Mongoose, but for the challenges you will want to stay with the versions of the dependencies found in the package.json file. There are breaking changes in new versions that can prevent you from passing certain challenges.