A
A
atis //2016-07-26 16:01:35
Yii
atis //, 2016-07-26 16:01:35

Why does an error occur when adding packages to Yii2 via Composer?

I add a package that is not related to Yii2 in any way, and Composer displays such rubbish for me.

Problem 1
    - yiisoft/yii2 2.0.9 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
    - yiisoft/yii2 2.0.9 requires bower-asset/jquery 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable -> no matching package found.
    - Installation request for yiisoft/yii2 (installed at 2.0.9) -> satisfiable by yiisoft/yii2[2.0.9].

The bower-asset/jquery 2.2.4 package is worth it !!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2016-07-26
@atis2345

most likely the fxp/composer-asset-plugin is not installed on the PC. You need to install it accordingly
composer global require "fxp/composer-asset-plugin"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question