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 install does not work in the repro directory #479

Open
domnantas opened this issue Feb 4, 2025 · 0 comments
Open

yarn install does not work in the repro directory #479

domnantas opened this issue Feb 4, 2025 · 0 comments

Comments

@domnantas
Copy link

domnantas commented Feb 4, 2025

I was setting up a reproduction for a bug and discovered the repro directory may have an issue itself.

Steps to reproduce

  • Clone the repo
  • cd one/repro
  • run yarn install

Yarn shows an error:

Usage Error: The nearest package directory (/private/tmp/one/repro) doesn't seem to be part of the project declared in /private/tmp/one.

- If /private/tmp/one isn't intended to be a project, remove any yarn.lock and/or package.json file there.
- If /private/tmp/one is intended to be a project, it might be that you forgot to list repro in its workspace configuration.
- Finally, if /private/tmp/one is fine and you intend repro to be treated as a completely separate project (not even a workspace), create an empty yarn.lock file in it.

Yarn version – 4.5.3

Adding an empty yarn.lock as suggested fixes the issue

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

No branches or pull requests

1 participant