Skip to content
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

Implement yarn install --no-optional #2615

Closed
callumlocke opened this issue Feb 2, 2017 · 4 comments
Closed

Implement yarn install --no-optional #2615

callumlocke opened this issue Feb 2, 2017 · 4 comments

Comments

@callumlocke
Copy link

Do you want to request a feature or report a bug?
Request a feature

What is the current behavior?

yarn install --no-optional doesn't seem to exist (or it's not documented).

What is the expected behavior?

It should work like npm install --no-optional – i.e. don't even attempt to install optionalDependencies (as opposed to just allowing them to fail quietly).

Please mention your node.js, yarn and operating system version.

Node v7.5.0
Yarn v0.19.1
OS X El Capitan

@mourner
Copy link
Contributor

mourner commented Feb 2, 2017

It's already there but called --ignore-optional. The problem is that it's not documented currently on the yarn install docs page (along with --ignore-scripts).

@bcomnes
Copy link

bcomnes commented Mar 21, 2017

--ignore-optional doesn't seem to be a work around for #2437 either, although you might expect it to work.

@sirlancelot
Copy link

Neither --no-optional nor --ignore-optional seem to work for me. I have an app with a dependency of linkifyjs@2.1.4. LinkifyJs has 3 large optionalDependencies which I don't want but Yarn will still install them.

@bestander
Copy link
Member

merging #2987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants