-
Couldn't load subscription status.
- Fork 2.7k
Open
Description
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?
- Package
aes-decrypteris on npm:{ latest: '1.0.3', beta: '1.0.0-0', next: '1.1.0' } - Package
video.jsis on npm:{ latest: '5.11.9', next: '5.12.6', alpha: '5.9.0-2' } - Package
videojs-contrib-hlsdepends onaes-decrypter@^1.0.3'andvideo.js@^5.10.1 - My package depends on
videojs-contrib-hls@^3.6.7inpackage.json:
{
"name": "yarn-next-bug-test",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"videojs-contrib-hls": "^3.6.7"
}
}- No yarn.lock
- Run
yarn
The packages installed and added to yarn.lock are:
- [email protected] (correct)
- [email protected] (incorrect, should be 5.11.9, latest stable matching version)
- [email protected] (incorrect, should be 1.0.3, latest stable matching version)
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)
hutson, bitfrost, teppeis, nfarina, SimulatedGREG and 2 more
Metadata
Metadata
Assignees
Labels
No labels