Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

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

Shulou Source: shulou.com Published: 2022-06-02 15:04:55 10月03日 Update

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!

Tags: Errors content articles values interests commands officials guys partners solutions more knowledge industries solutions information information channels mirrors problems channels references Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Shulou Tech Info Xiaomi Shulou Information macOS