Yarn参考手册
CLI
yarn why
显示关于为什么安装软件包的信息。
yarn why <query>
此命令将确定为什么安装了软件包,详细说明了哪些其他软件包依赖于它,或者是否明确标记为package.json
清单中的依赖项。
yarn why jest
yarn why vx.x.x
[1/4] ? Why do we have the module "jest"...?
[2/4] ? Initialising dependency graph...
[3/4] ? Finding dependency...
[4/4] ? Calculating file sizes...
info Has been hoisted to "jest"
info This module exists because it's specified in "devDependencies".
info Disk size without dependencies: "1.29kB"
info Disk size with unique dependencies: "101.31kB"
info Disk size with transitive dependencies: "20.35MB"
info Amount of shared dependencies: 125
查询参数
强制查询参数yarn why
可以是以下任何一个:
- 包的名称(如上例)
- 一个包文件夹; 例如:
yarn why node_modules/once
- 包文件夹中的文件; 例如:
yarn why node_modules/once/once.js
文件位置也可以是绝对的。
CLI相关
Apache Hadoop YARN (Yet Another Resource Negotiator,另一种资源协调者)是一种新的 Hadoop 资源管理器,它是一个通用资源管理系统,可为上层应用提供统一的资源管理和调度,它的引入为集群在利用率、资源统一管理和数据共享等方面带来了巨大好处。
主页 | https://yarnpkg.com/ |
源码 | https://github.com/yarnpkg/yarn |
发布版本 | 1.3.2 |