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

@Brock Just 2 line script requiring mongoose and connecting it.
I just started learning MongoDb and it’s my first MongoDb project trying to connect with Node.js