简体   繁体   English

如何降级Node.js驱动版本

[英]how to downgrade Node.js driver version

because I have windows 32-bit I am forced to use MongoDB version that using only 4 wires that's why when I wanted to connect MongoDB server with node, I got this Error因为我有 windows 32 位,所以我被迫使用仅使用 4 根电线的 MongoDB 版本,这就是为什么当我想将 MongoDB 服务器与节点连接时,出现此错误在此处输入图像描述

after long search I find that I have to either use a driver which supports protocol version 4 or a server which supports protocol version 6 (the last option option is not possible due to the 32-bit problem).经过长时间的搜索,我发现我必须使用支持协议版本 4 的驱动程序或支持协议版本 6 的服务器(由于 32 位问题,最后一个选项不可能)。 but there's no article on the inte.net explain how to downgrade the driver to one which supports protocol version 4, there's only articles about how to downgrade NodeJS version and NPM, I will be thankful if someone can suggest a solution但是 inte.net 上没有文章解释如何将驱动程序降级到支持协议版本 4 的驱动程序,只有关于如何降级 NodeJS 版本和 NPM 的文章,如果有人能提出解决方案,我将不胜感激

You need to use mongodb package version prior to 4.2:您需要使用mongodb package 4.2 之前的版本:

v4.2.0 Release Highlights NODE-3469,NODE-3615,NODE-3507: update min and max wire versions (#3014) (2a78d5a): Updates the minimum wire version for the driver to 6 (MongoDB 3.6) and max wire version to 14 (MongoDB 5.1) v4.2.0 发布亮点 NODE-3469、NODE-3615、NODE-3507:更新最小和最大连线版本 (#3014) (2a78d5a):将驱动程序的最小连线版本更新为 6 (MongoDB 3.6),将最大连线版本更新为14 (MongoDB 5.1)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM