Unable to install yiisoft/yii2-jui

I am trying to install yiisoft/yii2-jui using composer, but I got this error message.

Problem 1

- yiisoft/yii2-jui 2.0.0 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.


- yiisoft/yii2-jui 2.0.0 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.


- Installation request for yiisoft/yii2-jui 2.0.0 -> satisfiable by yiisoft/yii2-jui[2.0.0].

I think there is a problem with the composer dependency. Are there any way to resolve this problem?

http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-via-composer

Having similar problems trying to install the advanced app using Composer (not tried the basic app).

Here is a screen dump: As you can see, the fxp/composer-asset-plugin has been installed, Composer has created the project, but is unable to find some of the packages.

Edited in the light of Stafano’s comment to say that this is a clean install.


C:\Users\Chris>composer require "fxp/composer-asset-plugin:1.0.0-beta3"

./composer.json has been created

Loading composer repositories with package information

Updating dependencies (including require-dev)

  • Installing fxp/composer-asset-plugin (v1.0.0-beta3)

    Downloading: 100%

Writing lock file

Generating autoload files

C:\Users\Chris>mkdir Projects

C:\Users\Chris>cd projects

C:\Users\Chris\Projects>mkdir Yii

C:\Users\Chris\Projects>cd yii

C:\Users\Chris\Projects\Yii>composer create-project yiisoft/yii2-app-advanced 2.0.0

Installing yiisoft/yii2-app-advanced (2.0.0)

  • Installing yiisoft/yii2-app-advanced (2.0.0)

    Downloading: 100%

Created project in 2.0.0

Loading composer repositories with package information

Installing dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.

Problem 1

- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.0].


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

Problem 2

- Installation request for yiisoft/yii2-bootstrap * -> satisfiable by yiisoft/yii2-bootstrap[2.0.0].


- yiisoft/yii2-bootstrap 2.0.0 requires bower-asset/bootstrap 3.2.* | 3.1.*-> no matching package found.

Problem 3

- Installation request for yiisoft/yii2-gii * -> satisfiable by yiisoft/yii2-gii[2.0.0].


- yiisoft/yii2-gii 2.0.0 requires bower-asset/typeahead.js 0.10.* -> no matching package found.

Problem 4

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


- yiisoft/yii2-faker 2.0.0 requires yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.0].


- Installation request for yiisoft/yii2-faker * -> satisfiable by yiisoft/yii2-faker[2.0.0].

Potential causes:

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

C:\Users\Chris\Projects\Yii>composer diagnose

Checking platform settings: OK

Checking git settings: OK

Checking http connectivity: OK

Checking disk free space: OK

Checking composer version: OK

C:\Users\Chris\Projects\Yii>

I have noticed that if you installed without said plugin and then install it later it still fails. Even with composer update there aren’t joy.

Solution is deleting folders and create again

It works now. Thank you very much :)

Many thanks. It solved my issues… :rolleyes:

Having the same issue even after executing composer global require "fxp/composer-asset-plugin:1.0.0-beta4"

Please see attached.

Please help. I have worked through the composer troubleshooting guide as per attached and still cannot fix this?

— UPDATE:

Solved by deleting composer and reinstalling.