|
警告内容:
(node:7892) DeprecationWarning: current URL string parser is deprecated, and wil
l be removed in a future version. To use the new parser, pass option { useNewUrl
Parser: true } to MongoClient.connect.
第二次连接后报错内容:
cannot [是啥来着 我忘了 反正意思就是找不到mongodb模块]
============================
其实吧 原因在哪呢 我的mongodb 封装的是 3.0.4的模块 而 最新版的不是 , 我可以把版本换回去,but 我安装以前版本又报个错 ,索性吧 我偷个懒 按照网上说的。在我自己封装的db 文件内 加入一个 正常运行,不报错了 。很阔以
参考文献:https://blog.csdn.net/weixin_37930716/article/details/81900990
|
|