In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the solution to the error report of composer installation yii. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Composer installation yii error how to do?
The solution to the error of Yii2 in Composer installation
Composer was unable to generate the vendor directory and could not download vendor content.
And use the domestic free image, set up, unexpectedly requested or a formal address?
After messing around all day, I finally solved the problem of changing V, um, P, and finished downloading.
I feel that the free mirror https://pkg.phpcomposer.com/ is really lame.
Instead of mirroring, all requests are redirected to the origin server without notice.
1. Clear the cache
Composer clear-cache
two。 Set available mirrors
Composer config-g repos.packagist composer https://php.cnpkg.org
3.require fxp
Composer global require "fxp/composer-asset-plugin:dev-master"
4. Perform installation
Composer install-vvv
5. Remove custom images
Composer config-g-- unset repos.packagist
6. Error message
Fxp/composer-asset-plugin v1.0.0 requires composer-plugin-api 1.0.0-> no matching package found.
Solution.
Remove extra.asset-installer-paths section and add the following configuration to config
Config: {"fxp-asset": {"installer-paths": {"npm-asset-library": "vendor/npm", "bower-asset-library": "vendor/bower"}},}
Write at the end, why the composer warehouse can be blocked, feel really incredible, technology self-blocking?
It's also amazing.
This is the end of this article on "the solution to composer installation yii error report". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.