-
Notifications
You must be signed in to change notification settings - Fork 20
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
install-peerdeps should handle/pass version ranges with spaces to yarn #31
Comments
Thanks for this issue. I'll look into it ASAP. |
Same issue with NPM:
Results in:
It should instead run with quoted version range arguments:
NOTE: spaces are optional between operators (">=") and versions ("2.3.1") but NOT between versions ("2.3.1") and operators ("<") which are used when specifying both a lower and upper-bound. Easiest fix I can see would be testing for whitespace and quoting the version range if one exists. |
I just noticed this pull #4 should this pull has fixed this issue? |
@nandub I believe you are correct given this statement at the bottom of the PR:
|
This should be fixed in the latest release, v1.10.1. The current behavior is to read the range and install the later version if the range uses an inclusive comparator (e.g. <=), else install the earlier version. |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
yarn add fails to install packages with version ranges.
yarn-error.log
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
install-peerdeps
should handle/pass version ranges to yarn when installing the packages.Passing quotes to yarn seems to do the trick:
Please mention your node.js, yarn and operating system version.
nodejs=8.11.3
yarn=1.7.0
MacOS=El Capitan (10.11.6)
The text was updated successfully, but these errors were encountered: