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

support a --legacy-peer-deps option #6

Closed
rubys opened this issue Apr 29, 2023 · 0 comments
Closed

support a --legacy-peer-deps option #6

rubys opened this issue Apr 29, 2023 · 0 comments

Comments

@rubys
Copy link
Contributor

rubys commented Apr 29, 2023

See Error while deploying Node.js app for details.

Summary: a package can indicate peer dependencies, and often this is wrong.

npm will, by default, respect these dependencies unless --legacy-peer-deps is passed as an option. When needed, it has to be on both the install and prune options.

yarn v1 (the one pretty much everybody uses) will ignore these dependencies. Yarn v2 and v3 respects them, unless --legacy-peer-deps is passed as an option.

pnpm ignores these dependencies unless --strict-peer-dependencies is passed as an option.

This seems to be a problem that very few people hit, but enough of them do to merit a flag.

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

1 participant