Home >Development Tools >composer >About the solution when composer installs the package

About the solution when composer installs the package

藏色散人
藏色散人forward
2020-09-12 13:16:394262browse

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!

About the solution when composer installs the package

#1. Error 1


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

2. Error 2


[Composer\Downloader\TransportException]
Content-Length mismatch

3. Various problems will occur when installing tp6 using composer create-project official command


Solution

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete