yarn list
命令模仿 Unix 列目录命令的预期行为。 In Yarn, the command lists all dependencies for the current working directory by referencing all package manager meta data files, which includes a project’s dependencies.
yarn list [—depth] [—pattern]
记住,深度层级时从零索引的。
示例: