关于已弃用的软件包的 NPM 警告消息 [英] NPM warn message about deprecated package

查看:56
本文介绍了关于已弃用的软件包的 NPM 警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在全局安装一个模块

I am installing a module globally

$ npm install -g X

NPM 说

"npm WARN 已弃用 lodash@1.0.2: lodash@<3.0.0 不再是保持.升级到 lodash@^4.0.0"

"npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0"

如何找出哪个模块依赖于这个旧版本的 lodash?

how can I find out which module has an dependency on this old version of lodash?

来自 NPM 的警告消息似乎没有给我任何线索,哪个模块引用了这个旧版本(我相信模块 X 没有直接依赖这个旧版本的 lodash.)

The warning message from NPM doesn't seem to give me any clue which module references this old version (I believe that the module X does not have a direct dependency on this old version of lodash.).

推荐答案

npm la <package-name> 

也可以使用,并且会为您提供有关依赖项的依赖关系图的最详细信息.

also works, and will give you the most details about the dependency graph of a dependency.

npm ls ,做了类似的事情,但给你的细节更少

npm ls <package-name>, does something similar but gives you less details

这篇关于关于已弃用的软件包的 NPM 警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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