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

Hey, also make sure that the port is correct in the configs, and use ls to see if you’re in the right directory for that project, too.