mongoose连接运行报错DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and

错误提示如下: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.

mongoose连接运行报错DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and

mongoose连接运行报错DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and

解决方案:

mongoose连接运行报错DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and

如图中红色标记,添加提示的内容,问题解决

mongoose连接运行报错DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, andmongoose连接运行报错DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and 一个人两座城 发布了4 篇原创文章 · 获赞 0 · 访问量 33 私信 关注
上一篇:android – 移动设备的真实用户监控


下一篇:c# – 如何监控网站的变化?