命令使用NPM或纱线显示当前版本的软件包?
是否有NPM或纱线命令可以显示我的项目中安装了哪个版本的依赖项?
纱Info
显示我的NPM注册表中存在的版本。例如,我将jest
设置为:“ jest”:“ 27.5.1”
,但是当我运行YARN INFO JEST版本
时,它显示我<代码> 28.1.0
我知道我可以打开锁定文件,但是很难处理。
Is there npm or yarn command to show which version of dependency is installed in my project?
yarn info
show my the version that exist in the npm registry. for example I set jest
to be: "jest": "27.5.1"
but when I run yarn info jest version
it show me 28.1.0
I know I can open the lock file, but is hard to handle that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Node软件包管理器中只需使用:
当前安装版本:
纱线:
In node package manager simply use :
current installed version :
Yarn :