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
Root package.json is not used #2693
Comments
Unfortunately, most of the commands don't work if executed in sub-directories. I don't know the desired behaviour here. |
npm install, npm run, both find the correct root. yarn variants don't. It's enough to make me not use yarn. |
The desired behaviour should be to search for I run into this issue almost daily when I forget to |
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
I try to install a package from a subdirectory. Yarn creates a new package.json in that subdirectory instead of in the package root.
If the current behavior is a bug, please provide the steps to reproduce.
This results in 2 package.json files, on in parent and one in child, together with 2 yarn.lock files.
What is the expected behavior?
Based on the documentation ("...within the root directory of your package...") I would expect yarn to find my package.json in the top directory and install the package there.
Please mention your node.js, yarn and operating system version.
nodejs: 4.4.3
yarn: 0.19.1
OS: OSX 10.11.6
The text was updated successfully, but these errors were encountered: