yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.

yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.

How to fix?

Reference: http://www.yiiframework.com/forum/index.php/topic/62276-yii2-composer-is-broken/

[root@dev html]# myphp composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
– yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
– yiisoft/yii2 2.0.6 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
– Installation request for yiisoft/yii2 >=2.0.6 -> satisfiable by yiisoft/yii2[2.0.6].

Potential causes:
– A typo in the package name
– The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.

Read for further common problems.
[root@dev html]# myphp composer.phar global require “fxp/composer-asset-plugin:~1.1.0”
Changed current directory to /root/.composer
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
– Installing fxp/composer-asset-plugin (v1.1.0)
Downloading: 100%

Writing lock file
Generating autoload files

[root@dev html]# !162
myphp composer.phar update
Loading composer repositories with package information
Updating dependencies (including require-dev)
– Removing yiisoft/yii2-bootstrap (2.0.4)
– Installing yiisoft/yii2-bootstrap (2.0.5)
Downloading: 100%

– Removing yiisoft/yii2-debug (2.0.4)
– Installing yiisoft/yii2-debug (2.0.5)
Downloading: 100%

– Installing kartik-v/yii2-krajee-base (v1.7.7)
Downloading: 100%

– Installing kartik-v/yii2-grid (dev-master 336f55b)
Cloning 336f55b201e8f1d37a8d5ac89dae637eda3eea84

Writing lock file
Generating autoload files

Leave a Reply

Your email address will not be published. Required fields are marked *

2 + 7 =