Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn ls <package> is missing. #531

Closed
cpojer opened this issue Oct 6, 2016 · 5 comments
Closed

yarn ls <package> is missing. #531

cpojer opened this issue Oct 6, 2016 · 5 comments
Labels

Comments

@cpojer
Copy link
Contributor

cpojer commented Oct 6, 2016

Missing feature, compare with npm ls once. Should yarn why once be the replacement for it? If so, the dependency graph that it shows seems wrong.

[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
yarn@0.14.0 /Users/cpojer/Projects/yarn
├─┬ eslint@3.7.1
│ └─┬ glob@7.1.0
│   └── once@1.4.0
├─┬ gulp@3.9.1
│ └─┬ orchestrator@0.3.7
│   └─┬ end-of-stream@0.1.5
│     └── once@1.3.3
└─┬ tar-stream@1.5.2
  └─┬ end-of-stream@1.1.0
    └── once@1.3.3
@cpojer cpojer modified the milestones: 1.0.0 - Open source, Open Source Oct 6, 2016
@sebmck sebmck added the cat-bug label Oct 11, 2016
@cpojer cpojer changed the title yarn ls <package> missing and yarn why <package> discrepancy. yarn ls <package> is missing. Oct 17, 2016
@torifat
Copy link
Member

torifat commented Nov 22, 2016

We have yarn ls <package> now 😃

@torifat torifat closed this as completed Nov 22, 2016
@cpojer
Copy link
Contributor Author

cpojer commented Nov 28, 2016

@torifat awesome!!

@sudo-suhas
Copy link

For anyone who comes here in search of the ls command, yarn list <package> works on v1.9.4(ls doesn't work).

@shaodahong
Copy link

yarn ls <package> not found

❯ 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.

@virtuoushub
Copy link

For anyone who comes here in search of the ls command, yarn list <package> works on v1.9.4(ls doesn't work).

for anyone who comes here using yarn@berry (v2+):

Use the yarn why command - https://yarnpkg.com/cli/why

yarn why vue

yarnpkg/berry#720 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants