My MongoDB server is running locally, i can execute my commands on shell also but when i try to connect MongoDB with Node.js it gives me error

Hello @Rahul_pal

Can you please provide the Node.JS script you’re using?
Are you using the MongoDB Node.JS Driver? I see you’re using Mongoose via the directory.
What type of app is this? What is this running on?