What happens when composer install keeps failing?

藏色散人
Release: 2021-11-29 15:39:51
forward
3485 people have browsed it

This article is written by the composer tutorial column to introduce to you the problem of composer install failing all the time. I hope it will be helpful to friends in need!

Specific problem description:

The laravel project is pulled from git. composer install keeps failing?

I pulled the project from git. Composer install keeps reporting errors

1.

What happens when composer install keeps failing?

2.

What happens when composer install keeps failing?

Second question After Baidu, it seemed that the git version was not compatible. I deleted composer's lock file and executed composer clear, and switched from the main branch to the personal branch, and then the first problem occurred. Is there something wrong with the source? . It's normal for me to create a new laravel.

Solution:

The second problem seems to be that the version of git after Baidu is not compatible. I deleted the lock file of composer and executed composer clear, and from Switch the master branch to the personal branch, and then the first problem occurs. Is there something wrong with the source? . It's normal for me to create a new laravel.

Operation steps:

Delete the composer.lock file, execute composer clear, and execute composer global config to find the composer global installation path. Check and delete the config file, and switch git to the branch. Execute composer install again, and finally forget the change of app_key in .env (if necessary)

The above is the detailed content of What happens when composer install keeps failing?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
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