M.N
M.N

Reputation: 39

nodemon] app crashed - waiting for file changes before starting

I cannot connect to Mongo using mongoose ,,,

querySrv ENODATA _mongodb._tcp.todocluster-3kozc.mongodb.net [nodemon] app crashed - waiting for file changes before starting...

enter image description here

Upvotes: 0

Views: 1979

Answers (2)

Dinesh Garusinghage
Dinesh Garusinghage

Reputation: 11

npx kill-port 5000

then,

yarn start or npm start

Upvotes: 0

M.N
M.N

Reputation: 39

I found a solution in another post Error: querySrv ENODATA _mongodb._tcp.blog-cluster-0hb5z.mongodb.net at QueryReqWrap.onresolve [as oncomplete]

For some reason the dns server did not return srv records, changing the dns server to one that returns those records fixed the problem. (I used https://use.opendns.com/ to fix the it)

it works now ...

Upvotes: 1

Related Questions