Yarn: `纱ls<package>`丢失。</package>

创建于 2016-10-06  ·  4评论  ·  资料来源: yarnpkg/yarn

缺少功能,请与npm ls once 。 应该用yarn why once代替吗? 如果是这样,它显示的依赖关系图似乎是错误的。

[cpojer: ~/Projects/yarn (master)]$ yarn why once
yarn why v0.14.0
[1/3] 🤔  Why do we have the module "once"...?
[2/3] 🚚  Initialising dependency graph...
[3/3] 🔍  Finding dependency...
info Reasons this module exists
   - "node-gyp#glob" depends on it
   - "jest#jest-cli#istanbul-api" depends on it

[cpojer: ~/Projects/yarn (master)]$ npm ls once
[email protected] /Users/cpojer/Projects/yarn
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected]
└─┬ [email protected]
  └─┬ [email protected]
    └── [email protected]
cat-bug

最有用的评论

对于来这里搜索ls命令的任何人, yarn list <package>可以在v1.9.4ls不起作用)。

所有4条评论

我们现在有yarn ls <package> 😃

@torifat太棒了!!

对于来这里搜索ls命令的任何人, yarn list <package>可以在v1.9.4ls不起作用)。

找不到yarn ls <package>

❯ yarn ls react     
yarn run v1.19.1
error Command "ls" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
此页面是否有帮助?
0 / 5 - 0 等级