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

藏色散人
Release: 2020-12-31 17:11:40
forward
6353 people have browsed it

The following tutorial column ofcomposerwill 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 pathThe 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"
Copy after login

.

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
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!