Composer php 如何获得所需版本的Composer插件API?

Composer php 如何获得所需版本的Composer插件API?,composer-php,Composer Php,必须执行以下操作: composer self-update composer global require "fxp/composer-asset-plugin:*" 但在执行composer自更新后,会弹出一个错误: The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("~1.0.0-alpha10") that does not match your Composer i

必须执行以下操作:

composer self-update
composer global require "fxp/composer-asset-plugin:*"
但在执行composer自更新后,会弹出一个错误:

The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("~1.0.0-alpha10") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("~1.0.0-alpha10") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
我当前版本的Composer是1.4.2 出于同样的原因,以下命令不起作用:

composer global require "fxp/composer-asset-plugin:*"
将弹出一个错误:

The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("~1.0.0-alpha10") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("~1.0.0-alpha10") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.

如何获得所需版本的Composer插件API?

您只需更新
hirak/prestissimo

composer global update hirak/prestissimo --no-plugins

您只需更新
hirak/prestissimo

composer global update hirak/prestissimo --no-plugins