Home >Development Tools >composer >Solve the timeout problem of laravel during composer install

Solve the timeout problem of laravel during composer install

藏色散人
藏色散人forward
2022-01-26 16:54:513158browse

This article is written by the composer tutorial column to introduce how to solve the timeout problem of laravel composer install. I hope it will be helpful to friends in need!

Brand new unopened laravel, after Ubuntu runs composer install, other expansion packages can go smoothly After installation, halfway through the car, a lump suddenly popped out timeout
the *****&^%$%$##@#@#$%^^ 'https://github.com/bobthecow/psysh.git' $%^&**((()&^&^%%$$## timeout

Yes! That's right, it's probably the one above.

How can we not change the source at this time!

composer config -g repo.packagist composer https://packagist.phpcomposer.com

What the hell, it still doesn’t work after changing the source, it’s time to pull out github and worship the gods! [Related recommendations: laravel video tutorial]

Go to github to find the previous project source, switch to the version required by the framework, yes, I am shameful download ZIP, as shown below

Solve the timeout problem of laravel during composer install

After downloading, upload it to the project vendor, unzip it, and it’s done in one go~
……………………
Run againcomposer install
…………………………………………

As everyone guessed, the palace is closed perfectly~

Package The location is as follows

Solve the timeout problem of laravel during composer install

The above is the detailed content of Solve the timeout problem of laravel during composer install. For more information, please follow other related articles on the PHP Chinese website!

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