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

About the solution when composer installs the package

藏色散人
Release: 2020-09-12 13:16:39
forward
4255 people have browsed it

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)
Copy after login

2. Error 2


[Composer\Downloader\TransportException]
Content-Length mismatch
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template