简体   繁体   English

我如何看待需要使用纱的卷装?

[英]How do I see what requires a package using yarn?

My node app has a dependency that depends on node-webcrypto-ossl . 我的节点应用程序具有依赖于node-webcrypto-ossl的依赖node-webcrypto-ossl

I'd like to run something like: 我想运行类似的东西:

yarn what-depends node-webcrypto-ossl

To see the dependency chain, eg: 要查看依赖关系链,例如:

A
  B
    node-webcrypto-ossl

However I can't find anything to do this in the yarn CLI docs . 但是,我在yarn CLI文档中找不到任何可做的事情。

How do I see what requires a package using yarn? 我如何看待需要使用纱的卷装?

yarn added the yarn why command specifically to get information on why a package is imported. yarn专门添加了yarn why命令,以获取有关为什么导入软件包的信息。

For example: 例如:

yarn why node-webcrypto-ossl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM