-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Workspaces with "nohoist": ["**"] fails with ENOENT error #6988
Comments
Also experiencing this with same node and yarn verisons, but running in docker |
I'm running into this issue as well. I've created a simple reproduction repo here: https://github.com/SuaYoo/yarn-workspace-nohoist-issue Notes:
|
We have the same issue, but with the acorn package. My main problem here is that the error message is unacceptably obtuse: I was able to work around the problem by deleting my yarn.lock (also unnacceptable), and now I'm going to hand-edit my yarn.lock file. If the CLI could tell me I need to reconcile/remove differing versions of acorn, with line numbers, that would be very helpful. |
node 8.6.0, yarn 1.15.2. Got the same error. |
Same here |
We're having the exact same issue (already reported here -- any ideas on a potential workaround? |
any updates on this? |
anything? |
same here |
The I'm willing to review and merge a PR that would fix the behaviour described in this issue, but I don't have the bandwidth to work on it myself while we're hard at work on the v2. Thanks for your understanding. |
Closing as this won't happen anymore in the v2 where installConfig.hoistingLimits should be used instead of |
What is the current behavior?
On a large monorepo project with 5+ packages, adding
"nohoist": ["**"]
to the root package.json results inENOENT
errors, for example:/Users/ryanashcraft/Work/javascript/packages/eslint-config-amplitude-base/node_modules/table/node_modules
is an empty directory.If the current behavior is a bug, please provide the steps to reproduce.
This project is closed-source, so I can't provide a link. Happy to provide more information about the project if helpful.
What is the expected behavior?
The install succeeds, and all packages are not hoisted to the root repo directory.
Please mention your node.js, yarn and operating system version.
yarn: v1.13.0
node: v10.15.0
macOS: 10.14.2
Related issues.
I decided to make a separate issue for this as it relates specifically to configuring
"nohoist": ["**"]
:#6042
#5421
#5601
#4563
The text was updated successfully, but these errors were encountered: