Home  >  Article  >  Development Tools  >  Solution to error reported by fxp/composer-asset-plugin package

Solution to error reported by fxp/composer-asset-plugin package

藏色散人
藏色散人forward
2020-12-31 17:10:446438browse

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!

Solution to error reported by fxp/composer-asset-plugin package

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete