-
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
Does yarn add --ignore-optional
work?
#2680
Comments
I am experiencing this same issue. No errors are thrown, and the optional dependencies are still installed and added to |
Isn't the flag |
I think that may be wrong since the docs on the site state it's |
Actually, I can't even find the word |
merging into #2666 |
This is still an issue with yarn v1.1.0, running
I can find it in the CLI help documentation, but not the yarn website docs. When I do: yarn add --ignore-optional bunyan@1.8.3
yarn why dtrace-provider I can verify that the optional dtrace-provider dependency is installed anyways. As a result, I can't ignore optional dependencies for a specific package. |
Like @timrs2998, I'm seeing the same issue on yarn 1.2.1 (Mac, 10.13). Comments added to #4665. |
--ignore-optional works in yarn 1.15.2 on MacBookPro12,1 with node 11.13.0 |
--ignore-optional does not work in yarn 1.15.2 on MacBookPro 10.14.5 with node 11.13.0 $ yarn install --ignore-optional |
does not work...
|
OMG, this is still broken... |
Why is this issue closed? As far as I can tell, |
This seems like it still doesnt work? |
As far as I can tell, it seems like |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Even after specifying the
--ignore-optional
flag on yarn add, it tries to install optional dependency.If the current behavior is a bug, please provide the steps to reproduce.
(under windows)
mkdir test && cd test
npm init -y
yarn add paper --ignore-optional
What is the expected behavior?
Yarn shouldn't warn about installing the optional
canvas
dependency, when I don't have the tools to build it.Please mention your node.js, yarn and operating system version.
Node: 6.9.2
Yarn: 0.19.1
Windows 10 Home 64bit
The text was updated successfully, but these errors were encountered: