При попытке установки плагина composer-asset-plugin v1.0.0-beta3 с помощью команды php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta3" может возникнуть следующая ошибка:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for fxp/composer-asset-plugin 1.0.0-beta3 -> satisfiable by fxp/composer-asset-plugin[v1.0.0-beta3].
- fxp/composer-asset-plugin v1.0.0-beta3 requires composer-plugin-api 1.0.0 -> no matching package found.
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://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, deleting ./composer.json.
Проблема решается банально. Необходимо ставить обновленный пакет. Команда выше описана в относительно старых документациях по Yii 2. Проблему решит следующее:
php composer.phar global require "fxp/composer-asset-plugin:1.1.4"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for fxp/composer-asset-plugin 1.0.0-beta3 -> satisfiable by fxp/composer-asset-plugin[v1.0.0-beta3].
- fxp/composer-asset-plugin v1.0.0-beta3 requires composer-plugin-api 1.0.0 -> no matching package found.
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://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, deleting ./composer.json.
php composer.phar global require "fxp/composer-asset-plugin:1.1.4"
Комментарии
Отправить комментарий