Hi,
I’m trying to force the use of jQuery 1.11.* with this composer.json:
...
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"kartik-v/yii2-widget-datepicker": "*",
"kartik-v/yii2-widget-select2": "*",
"mikehaertl/php-pdftk": "*",
"bower-asset/jquery": "1.11.*@stable",
"bower-asset/respond-minmax": "*"
},
...
But composer return this error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package bower-asset/jquery could not be found in any version, there may be a typo in the package name.
Problem 2
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.2 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.0, 2.0.1, 2.0.2].
I’ve updated composer and composer-asset-plugin:
$ composer self-update
$ composer global require "fxp/composer-asset-plugin:1.0.0"
But the problem still remains, what did I do wrong?