Sunday, 10 May 2020

Vs Code problem with Mongo

Hi,​I've installed mongoDB through npm on vsCode. When I try and run Mongod, it tells me that there is n function or cmdlet (etc) with that name. Whats going on?​I've tried installing through Azure - no joy, because you need to have Mongod running before it can connect to DB.​Anyone got any ideas?​mongoose.connect('mongodb://localhost:27017/userdb', {useNewUrlParser: true, useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true });​is the code I'm using.​mongodb is in my package.json.

Submitted May 10, 2020 at 09:04PM by LordBadgerFlaps

No comments:

Post a Comment