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

时间:2017-07-23 05:43:27

标签: composer-php

有必要执行以下操作:

composer self-update
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.

我当前的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.

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

1 个答案:

答案 0 :(得分:1)

您只需要更新hirak/prestissimo

composer global update hirak/prestissimo --no-plugins