有必要执行以下操作:
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.
我当前的作曲家版本是 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.
如何获取所需版本的作曲家插件 API?
你只需要更新hirak/prestissimo
:
composer global update hirak/prestissimo --no-plugins