The following tutorial column of composer will introduce you to the solution to the fxp/composer-asset-plugin package error. I hope it will be helpful to friends in need!
The error message is as follows
My solution
Delete
C:\Users\win7\AppData\Roaming\Composer\vendor\
Fxp under the path
The file under the path contains the Fxp path
Go back to https://pkg.phpcomposer.com/ and search for the fxp/composer-asset-plugin package to install the latest version
composer global require "fxp/composer-asset-plugin:~1.3"
.
Solution to this error:
Fatal error: Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::search($qu ery, $mode = 0) must be compatible with Composer\Repository\ComposerRepository::search($query, $mode = 0, $type = NULL) in C:\Users\win7\AppData\Roaming\Composer\vendor\fxp\composer-asset-plugin\Repos itory\AbstractAssetsRepository.php on line 334
The above is the detailed content of Solution to error reported by fxp/composer-asset-plugin package. For more information, please follow other related articles on the PHP Chinese website!