The following tutorial column of composer will introduce to you the solutions when installing the composer package. I hope it will be helpful to friends in need!
#1. Error 1Loading composer repositories with package information Updating dependencies (including require-dev)
[Composer\Downloader\TransportException] Content-Length mismatch
1. Remove openssl parsing in php.ini
2, replace 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
It will no longer be used tp6, change to tp5.1.37
The above is the detailed content of About the solution when composer installs the package. For more information, please follow other related articles on the PHP Chinese website!