-
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
Yarn uses matching @next / unstable version instead of latest matching stable like NPM #1690
Comments
I ran into the same thing. This seems to go wrong in |
I'm also having this problem with the typscript package. Running
Running
You could argue who is doing wrong. I think that yarn follows semver and looks for latest valid release which in my cases is 2.1.1. Npm seems to use the info from dist-tags and typescript should have used the version "2.1.1-rc". |
Encountered this when installing My workaround was to explicitly declare the version of |
Do you want to request a feature or report a bug?
Bug 🐜 😱 Yarn selects different versions than NPM with the same version specifier.
What is the current behavior?
aes-decrypter
is on npm:{ latest: '1.0.3', beta: '1.0.0-0', next: '1.1.0' }
video.js
is on npm:{ latest: '5.11.9', next: '5.12.6', alpha: '5.9.0-2' }
videojs-contrib-hls
depends onaes-decrypter@^1.0.3'
andvideo.js@^5.10.1
videojs-contrib-hls@^3.6.7
inpackage.json
:yarn
The packages installed and added to yarn.lock are:
What is the expected behavior?
What NPM does with this same package.json:
Please mention your node.js, yarn and operating system version.
node.js v7.0.0
both yarn v0.16.0 and v0.19.0-0 (master at f0d875a) have the bug
both npm v3.10.9 and v4.0.2 do the expected thing
macOS Sierra 10.12.2 Beta (16C32f)
The text was updated successfully, but these errors were encountered: