gpt4 book ai didi

npm - 如何找到具有特定依赖项的 npm 包?

转载 作者:行者123 更新时间:2023-12-01 13:15:54 25 4
gpt4 key购买 nike

我的 webpack 项目有一个新错误:

Browserslist: caniuse-lite is outdated. Please run next command npm update caniuse-lite browserslist



我还没有解决,但潜在的问题是:我没有 caniuse-lite 在我的 package.json 中 - 那么它在哪里?

顺便说一句:运行该命令没有区别。

很明显是依赖或者依赖的依赖,无止境……

npmjs caniuse-lite列出了 80 个依赖包。

有没有办法搜索包的依赖关系图以轻松找到我的 package.json 文件中的哪个包是该行某处依赖于 caniuse-lite 的父包?

最佳答案

您可以通过以下方式轻松检查。

在这里结帐更多:https://docs.npmjs.com/cli/ls
npm ls contextify

app-name@0.0.1 /home/zorbash/some-project
└─┬ d3@3.3.6
└─┬ jsdom@0.5.7
└── contextify@0.1.15

关于npm - 如何找到具有特定依赖项的 npm 包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55098358/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com