如何检查 node-mongodb-native 驱动程序版本? [英] How to check node-mongodb-native driver version?

查看:47
本文介绍了如何检查 node-mongodb-native 驱动程序版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用官方 node-mongodb-native 驱动程序.这是通过执行 npm install mongodb 安装的.但是我想检查它的版本,但不知道该怎么做.

I am using official node-mongodb-native driver in my project. Which was installed by doing npm install mongodb. However I want to check its version but not sure how to do so.

该 npm 存储库的 READ.ME 文件中没有任何内容.

There is nothing in the READ.ME file of that npm repo.

请帮忙.

谢谢.

推荐答案

根据 npm 文档 您可以使用 npm lsnpm ls -g(用于全局)

According to the npm documentation you can get a list of npm packages and their corresponding versions using npm ls or npm ls -g (for global)

这篇关于如何检查 node-mongodb-native 驱动程序版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆