MongoDB and Mongoose - Install and Set Up Mongoose - "Invalid MongoDB URI"

Hi there,

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:

Do you have any idea how i can solve this error that says the link is ‘invalid’?

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.

1 Like

Got it, i’ve already finished, but i thinked it would interfere in the result of the challenge. Btw, thanks! :grinning: