-
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
[BUG] Yarn --ignore-optional flag is not working #705
Comments
This is an unbroken chain of mandatory dependencies 😕 AFAICT, |
Actually @Kovensky I think you are wrong. It is an optinal dependency: https://github.com/brave/electron-builder/blob/master/package.json#L93 So I think
|
@Sh1d0w ah, I was looking at the generated |
@Kovensky You are right it is in the generated file. But https://github.com/brave/browser-laptop/blob/master/package.json defines dependency As pointed |
As a conclusion I think that Doing
Doing
|
The mystery, then, is why does it work on the chokidar > fsevents chain that webpack brings in. |
@Kovensky I think it isn't it just fails before it even gets to that point. This is
But |
@Sh1d0w I mean, it works fine if I create a lockfile in a mac on a project that depends on webpack and then try to install it on linux -- fsevents gets skipped as an optional dependency:
I wonder if the problem is when it has to create a lockfile? |
@kittens Any info on this? It is pretty serious issue and blocks install of packages on OSes that have not supported packages of packages as optional deps. |
Do you want to request a feature or report a bug?
It's a bug.
What is the current behavior?
While doing
yarn
install on the freshly checked out repo here https://github.com/brave/browser-laptopthe command fails with:
Yarn must not try to install packages that are not for that OS and should not fail on such cases. This deps are not defined in the package.json file.
yarn --ignore-optional
has no effect too.If the current behavior is a bug, please provide the steps to reproduce.
yarn
What is the expected behavior?
Doing
npm install
installs all dependencies correctly without errors.Please mention your node.js, yarn and operating system version.
node 5.6.0
yarn 0.15.1
Fedora 24, Linux
The text was updated successfully, but these errors were encountered: