Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the errors when composer failed to install the package?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the errors of composer installation package failure, the article is very detailed, has a certain reference value, interested friends must read it!

1. Error one

Loading composer repositories with package informationUpdating dependencies (including require-dev)

2. Error 2

[Composer\ Downloader\ TransportException] Content-Length mismatch

3. There are all kinds of problems when installing tp6 using composer create-project official command.

Solution

1. Delete the openssl parsing in php.ini.

2. Change the domestic image E:\ phpstudy2018\ PHPTutorial\ php\ php-5.6.27-nts\ php.exe composer.phar config-g repo.packagist composer https://packagist.phpcomposer.com

3. Use composer.phar to operate

E:\ phpstudy2018\ PHPTutorial\ php\ php-5.6.27-nts\ php.exe composer.phar instead of composer

Later, instead of using tp6, I switched to tp5.1.37

The above is all the contents of the article "what are the errors in the failure of the composer installation package?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report