1

Yii2 に2amigos 日付ピッカーをインストールしようとしていますが、次のエラーが発生します。

C:\xampp\htdocs\advanced>php composer.phar require "2amigos/yii2-date-picker-widget" "*"
./composer.json has been updated
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.2 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 == 2.0.2.0 -> satisfiable by yiisoft/yii2[2.0.2].

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 <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

composer.jsonファイルを編集して に変更しようとしminimum-stabilityましdevたが、それでも機能しません。

4

1 に答える 1

3

次のコマンドを使用して、composer アセット プラグインをインストールしてください。

composer global require "fxp/composer-asset-plugin:1.0.0"

一度だけ実行する必要があります。

詳細については、公式ガイドプラグインの公式ドキュメントをご覧ください。

インストール中にその他の問題が発生した場合は、コマンドcomposerを使用して最新バージョンに更新してself-updateください。

于 2015-02-06T05:10:59.417 に答える