无法安装Yii 2的JUI Extension

MrD*_*MrD 6 yii composer-php yii2

我想为Yii 2安装JUI Extension,但作曲家报告了以下问题:

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


    - yiisoft/yii2-jui 2.0.4 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
    - yiisoft/yii2-jui 2.0.3 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
    - yiisoft/yii2-jui 2.0.2 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
    - yiisoft/yii2-jui 2.0.1 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 -> satisfiable by yiisoft/yii2-jui[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4].

    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 <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

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

Installation failed, reverting ./composer.json to its original content.
Run Code Online (Sandbox Code Playgroud)

我能做些什么才能解决这个问题?

MrD*_*MrD 10

最后我找到了解决方案:

如果要为Yii2安装JUI扩展,则应执行以下步骤:

  1. 运行以下composer命令: php composer.phar require "fxp/composer-asset-plugin:~1.0"
  2. php composer.phar update
  3. php composer.phar require --prefer-dist yiisoft/yii2-jui