mosh-hamedani / vidly-api-node

309 stars 285 forks source link

node seed.js DeprecationWarning #22

Closed jalexandremoreira closed 4 years ago

jalexandremoreira commented 4 years ago

After wading through a number of problems with this outdated project, and failing to have a clean npm install, I got to the "node seed.js" bit, and got the following errors:

">node seed.js (node:3140) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect. (node:3140) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor. Done!"

It is unclear to me whether these are errors emerging from the previous vulnerabilities when installing npm, or if this is simply an outdated command... I wonder if someone smarter than me can help me out, as I'm stuck on this!