fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Cannot install specific version of bower assset #267

Closed nkostadinov closed 7 years ago

nkostadinov commented 7 years ago

I'm trying to install latest version of vue js lib but whatever I try I end up with error or version 2.0.2 but the latest is 2.1.4.

composer require bower-asset/vue:"dev"
....
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package bower-asset/vue dev exists as bower-asset/vue[dev-master, v2.1.4, v2.1.3, v2.1.2, v2.1.1, v2.1.0, v2.0.8, v2.0.7, v2.0.6, v2.0.5, v2.0.4, v2.0.3, v2.0.2, v2.0.1, v2.0.0, v2.0.0-RC.8, v2.0.0-RC.7, v2.0.0-RC.6, v2.0.0-RC.5, v2.0.0-RC.4
, v2.0.0-RC.3, v2.0.0-RC.2, v2.0.0-RC.1, v2.0.0-beta.8, v2.0.0-beta.7, v2.0.0-beta.6, v2.0.0-beta.5, v2.0.0-beta.4, v2.0.0-beta.3, v2.0.0-beta.2, v2.0.0-beta.1, v2.0.0-alpha.8, v2.0.0-alpha.7, v2.0.0-alpha.6, v2.0.0-alpha.5, v2.0.0-alpha.4, v2.0.0-alpha.3, v2.0
.0-alpha.2, v2.0.0-alpha.1, v1.0.28, v1.0.27, v1.0.26, v1.0.25, v1.0.24, v1.0.23, v1.0.22, v1.0.21, v1.0.20, v1.0.19, v1.0.18, v1.0.17, v1.0.16, v1.0.15, v1.0.14, v1.0.13, v1.0.12, v1.0.11, v1.0.10, v1.0.9, v0.10.6, v0.10.5, v0.10.4, v0.10.3, v0.10.2, v0.10.1,
v0.10.0, v0.9.3, v0.9.2, v0.9.1, v0.9.0, v0.8.8, v0.8.7, v0.8.6, v0.8.5, v0.8.4, v0.8.3, v0.8.2, v0.8.1, v0.8.0, v0.7.6, v0.7.5, v0.7.4, v0.7.3, v0.7.2, v0.7.1, v0.7.0, 1.0.8, 1.0.7, 1.0.6, 1.0.5, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 1.0.0-RC.2, 1.0.0-RC.1, 1.0.0
-beta.4, 1.0.0-beta.3, 1.0.0-beta.2, 1.0.0-beta.1, 1.0.0-alpha.8, 1.0.0-alpha.7, 1.0.0-alpha.6, 1.0.0-alpha.5, 1.0.0-alpha.4, 1.0.0-alpha.3, 1.0.0-alpha.2, 1.0.0-alpha.1, 0.12.16, 0.12.15, 0.12.14, 0.12.13, 0.12.12, 0.12.11, 0.12.10, 0.12.9, 0.12.8, 0.12.7, 0.1
2.6, 0.12.5, 0.12.4, 0.12.3, 0.12.2, 0.12.1, 0.12.0, 0.12.0-RC2, 0.12.0-RC1, 0.12.0-beta5, 0.12.0-beta4, 0.12.0-beta3, 0.12.0-beta2, 0.11.10, 0.11.9, 0.11.8, 0.11.7, 0.11.6, 0.11.5, 0.11.4, 0.11.3, 0.11.2, 0.11.1, 0.11.0, 0.11.0-RC3, 0.11.0-RC2, 0.11.0-RC1, 0.1
0.0-RC1, 0.6.0, dev-csp, dev-dev, dev-streaming-render, dev-weex, 0.10.x-dev, 0.11.x-dev, dev-0.12-csp, 0.12.x-dev, dev-1.0-csp, 1.0.x-dev, 1.1.x-dev] but these are rejected by your constraint.

And when I try :

composer require bower-asset/vue:v2.1.4
....
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - innologica/yii2-insight-catalog dev-master requires bower-asset/vue default -> satisfiable by bower-asset/vue[dev-master].
    - innologica/yii2-insight-catalog dev-master requires bower-asset/vue default -> satisfiable by bower-asset/vue[dev-master].
    - innologica/yii2-insight-catalog dev-master requires bower-asset/vue default -> satisfiable by bower-asset/vue[dev-master].
    - Can only install one of: bower-asset/vue[v2.1.4, dev-master].
    - Can only install one of: bower-asset/vue[dev-master, v2.1.4].
    - Installation request for bower-asset/vue v2.1.4 -> satisfiable by bower-asset/vue[v2.1.4].
    - Installation request for innologica/yii2-insight-catalog dev-master -> satisfiable by innologica/yii2-insight-catalog[dev-master].

So how can I install this version ?

francoispluchino commented 7 years ago

dev isn't a version format of Composer. Try dev-{branch-name} or the semver:

$ composer require bower-asset/vue:"^2.1"
nkostadinov commented 7 years ago

I know, I've tried all possible versions before that "dev-master", "default", "2.1.4", "~2.1.4" but the highest version I get was 2.0.2.

francoispluchino commented 7 years ago

default version is wrong, and it is used in innologica/yii2-insight-catalog (see first line of Problem 1).

I don't found the package innologica/yii2-insight-catalog on Packagist.

nkostadinov commented 7 years ago

This package is private for my company. You solution with "composer require bower-asset/vue:"^2.1" works fine. The problem was a constraint of "2.0.*" in another package. After I removed it everything is fine. Thanks for the help.

francoispluchino commented 7 years ago

Great news!