S
S
Sherzod Karimov2021-05-15 15:03:47
Yii
Sherzod Karimov, 2021-05-15 15:03:47

Do not install Yii2 extensions via Composer. How to fix?

I have such a problem. I'm going to install Yii2 extensions. But Composer gives me this error. What should I do?

composer require 2amigos/yii2-selectize-widget:~1.0
The "yiisoft/yii2-composer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
./composer.json has been updated
The "yiisoft/yii2-composer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Running composer update 2amigos/yii2-selectize-widget
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - yiisoft/yii2-composer 2.0.5 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - yiisoft/yii2 2.0.11 requires yiisoft/yii2-composer ~2.0.4 -> satisfiable by yiisoft/yii2-composer[2.0.5].
    - yiisoft/yii2 is locked to version 2.0.11 and an update of this package was not requested.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tukreb, 2021-05-15
@marsik_11

Who will read the error?

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

Get yourself a Komser version 1.

D
Dmitry Bay, 2021-05-15
@kawabanga

yiisoft/yii2 is locked to version 2.0.11
- set the latest up-to-date yii2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question