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

Strange version resolving #1158

Closed
sc0rp10 opened this issue Oct 17, 2016 · 4 comments
Closed

Strange version resolving #1158

sc0rp10 opened this issue Oct 17, 2016 · 4 comments
Labels

Comments

@sc0rp10
Copy link

sc0rp10 commented Oct 17, 2016

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
package.json

{
  "dependencies": {
    "devbridge-autocomplete": "^1.2.26",
    "jquery": "2.1.2"
  }
}

Will install:

devbridge-autocomplete:
  version "1.2.26"
  resolved "https://registry.yarnpkg.com/devbridge-autocomplete/-/devbridge-autocomplete-1.2.26.tgz#e491e01b701ba0ff509afaf4ee1eca69a9d00647"
  dependencies:
    jquery ">=1.7"

jquery@>=1.7:
  version "3.1.1"
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.1.1.tgz#347c1c21c7e004115e0a4da32cece041fad3c8a3"

[email protected]:
  version "2.1.2"
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-2.1.2.tgz#b68f154cb2ea4731924883e9fe20ec199d1dc1e2"

What is the expected behavior?
Install jquery once with version = 2.1.2
Please mention your node.js, yarn and operating system version.

$ node -v
v6.7.0
$ yarn -v
yarn install v0.15.1
@davidmerrique
Copy link

davidmerrique commented Oct 17, 2016

Same problem here

{
  "dependencies": {
    "jquery": "2.2.4",
    "parsleyjs": "2.5.1"
  }
}
jquery@>=1.8.0:
  version "3.1.1"
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.1.1.tgz#347c1c21c7e004115e0a4da32cece041fad3c8a3"

[email protected]:
  version "2.2.4"
  resolved "https://registry.yarnpkg.com/jquery/-/jquery-2.2.4.tgz#2c89d6889b5eac522a7eea32c14521559c6cbf02"

[email protected]:
  version "2.5.1"
  resolved "https://registry.yarnpkg.com/parsleyjs/-/parsleyjs-2.5.1.tgz#6380924e231c38b6eca3a597d7ebc0dde41ceb9f"
  dependencies:
    jquery ">=1.8.0"

Parsley depends on jquery@>=1.8.0, but 3.1.1 is still being installed even though 2.2.4 should satisfy it.

$ node -v
v6.9.0
$ yarn --version
0.16.0

@vladferix
Copy link

+1

@fearmear
Copy link

fearmear commented Oct 20, 2016

npm example

> mkdir npm-test && cd npm-test
> npm init --yes
> npm install --save [email protected] [email protected]
[email protected] /npm-test
├── [email protected]
└── [email protected]

yarn example

> mkdir yarn-test && cd yarn-test
> yarn add [email protected] [email protected]
yarn add v0.16.0
info No lockfile found.
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
success Saved 3 new dependencies.
├─ [email protected]
│  └─ [email protected]
└─ [email protected]
✨  Done in 6.26s.

@sebmck
Copy link
Contributor

sebmck commented Oct 26, 2016

Fixed via #1477.

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

No branches or pull requests

7 participants