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.
2.
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!