composer 安装 fxp/composer-asset-plugin ~1.3.0 报错
安装 fxp/composer-asset-plugin ~1.3.0 时,遇到如下错误:
fxp/composer-asset-plugin[v1.3.0, ..., v1.3.1] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.3.0] but it does not match the constraint.
该错误表明 fxp/composer-asset-plugin ~1.3.0 要求 composer-plugin-api ^1.0,但当前版本为 composer-plugin-api[2.3.0],不满足要求。
解决冲突,将 composer-plugin-api 降级到 1.x 版本即可。
composer self-update --1