我更新了作曲家
composer self-update
我安装了较新版本的插件
composer global require "fxp/composer-asset-plugin:*"
我尝试安装Laravel
作曲家全球需要“laravel / installer”
Changed current directory to C:/Users/Arthur/AppData/Roaming/Composer
Fatal error: Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRe
pository::search() must be compatible with Composer\Repository\RepositoryInterfa
ce::search($query,$mode = 0,$type = NULL) in C:\Users\Arthur\AppData\Roaming\C
omposer\vendor\fxp\composer-asset-plugin\Repository\AbstractAssetsRepository.PHP
on line 334
现在作曲家中的所有命令都不起作用
composer
请帮我解决一下
最佳答案
您可以使用–no-plugins选项临时禁用composer插件:
composer global remove fxp/composer-asset-plugin --no-plugins
请参阅Composer文档 – Global options:
–no-plugins: Disables plugins.