tofacebook.com -专业IT技术社区 【百家号】脸书百科,关于nodejs 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. Web程序 - tofacebook.com-专业IT技术社区
69°

【百家号】脸书百科,关于nodejs 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. Web程序

标签:key   version   nec   ring   mon   parser   and   string   error:   

const mongoose = require(‘mongoose‘)

mongoose.connect("mongodb://localhost:27017/study", {useNewUrlParser:true}, function(err){

  if(err){

    console.log(‘Connection Error:‘ + err)

  }else{

    console.log(‘Connection success!‘) }

})

关于nodejs 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.

标签:key   version   nec   ring   mon   parser   and   string   error:   

原文地址:https://www.cnblogs.com/TomAndJerry/p/9363951.html


本文由百家号/熊掌号作者上传并发布,百家号仅提供信息发布平台。文章仅代表作者个人观点,不代表百度立场。