如何在npm包中找到反向依赖?

时间:2022-09-09 23:00:02

I'd like to find out which packages depend on express among the installed sails/kraken/loopback/hapi/koa etc. Are there npm sub-commands or other ways to locally list all reverse dependencies on one specific npm package?

我想知道哪些软件包依赖于已安装的sails / kraken / loopback / hapi / koa等表达式。是否有npm子命令或其他方法在本地列出一个特定npm软件包的所有反向依赖项?

1 个解决方案

#1


19  

Adding package name after npm ls will show you tree only with the specified package.

在npm ls之后添加包名称将仅显示具有指定包的树。

npm ls express

#1


19  

Adding package name after npm ls will show you tree only with the specified package.

在npm ls之后添加包名称将仅显示具有指定包的树。

npm ls express