La actualización del compositor arroja una excepción Clase Fxp \ Composer \ AssetPlugin \ Repository \ NpmRepository no existe
Recientemente ejecuté la última instalación del compositor para una plantilla de aplicación básica Yii2.
Pero corriendophp composer.phar install
lanza esta excepción:
La clase Fxp \ Composer \ AssetPlugin \ Repository \ NpmRepository no existe
El complemento "yiisoft / yii2-composer" requiere composer-plugin-api 1.0.0, estoSERÁ romperse en el futuro y debería arreglarse lo antes posible (requiere ^ 1.0 por ejemplo).
[ReflectionException] Class Fxp \ Composer \ AssetPlugin \ Repository \ NpmRepository no existe
[ErrorException]
Declaración de Fxp \ Composer \ AssetPlugin \ Repository \ AbstractAssetsRepository :: w hatProvides () debe ser compatible con Composer \ Repository \ ComposerRepository :: whatProvides (Composer \ DependencyResolver \ Pool $ pool, $ name, $ bypassFilters = fal se)
Aquí está mi composer.json:
{
"name": "yiisoft/yii2-app-basic",
"description": "Yii 2 Basic Project Template",
"keywords": ["yii2", "framework", "basic", "project template"],
"homepage": "http://www.yiiframework.com/",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": ">=2.0.5",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*"
},
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"yiisoft/yii2-faker": "*"
},
"config": {
"process-timeout": 1800
},
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject"
]
},
"extra": {
"yii\\composer\\Installer::postCreateProject": {
"setPermission": [
{
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
],
"generateCookieValidationKey": [
"config/web.php"
]
},
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
}
¿Qué pudo haber salido mal? ¿Alguien experimenta esto?