-
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
Yarn fails on transitive optional dependencies that aren't compatible with the current OS #525
Comments
@kittens - Any ideas if this is an easy fix? I think it's blocking for launch given Windows and Linux users currently can't install packages that have a transitive dependency on fsevents. |
Looks like this regressed at some point 😢 #1285 |
Ran into this issue today with |
hello i am using windows 10 and i am working with Jhipster ( with Angular1 ans Postgres as SGDB) and i have have same bug and this is what the error shows
|
Was this properly resolved? I'm interested in switching my team's process to yarn, but I'm running into similar issues here. I'm attempting to setup workspaces, because we have a monrepo setup, and the source registry is a private registry in Azure DevOps. The problematic package is our own native node module in the workspace (it has |
Was this ever fixed? I'm having this issue right now in 2021. |
Yarn handles this correctly for direct dependencies (ie. dependencies in the
package.json
of the app you're running Yarn on), but not for transitive dependencies (ie. dependencies of those dependencies).Example
package.json
to repro on Windows:Example
package.json
to repro on Linux or Mac OS X:chokidar
has an optional dependency onfsevent
, which only works on Mac OS. Similarly,@daniel15/win-test-2
has an optional dependency on@daniel15/win-test
which only works on Windows.Output from
npm install
:Output from
yarn
(Windows):Output from Yarn (Debian Linux):
This blocks installation of
create-react-app
,browserify
andwebpack
on Windows (among other things) as they all have a dependency on eitherchokidar
orfsevents
The text was updated successfully, but these errors were encountered: