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

Solve the timeout problem of laravel during composer install

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

This article is written by thecomposertutorial 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 shamefuldownload 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 again composer 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