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 fails installing in current directory because of incomplete files in parent directory #7170

Open
SampsonCrowley opened this issue Apr 2, 2019 · 0 comments

Comments

@SampsonCrowley
Copy link

Do you want to request a feature or report a bug?

BUG

What is the current behavior?

yarn is traversing and parsing parent directories even when current directory has a package.json

If the current behavior is a bug, please provide the steps to reproduce.

create an invalid package.json -- (in my case there are nested apps, and i created the child before the parent, in the process of changing from a static CRA to Express server)
create a subdirectory and cd into it
create a valid package.json and run yarn

What is the expected behavior?

it should keep to the subdirectory because it has a valid package.json with dependencies

Please mention your node.js, yarn and operating system version.

node v11.12.0

yarn v1.15.2

Linux archlinux 5.0.4-arch1-1-ARCH #1 SMP PREEMPT Sat Mar 23 21:00:33 UTC 2019 x86_64 GNU/Linux

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