本文給大家介紹怎么解決laravel進行composer install之timeout問題,希望對需要的朋友有所幫助!
laravel進行composer install之timeout車禍現場拯救
全新未拆封的laravel,Ubuntu運行composer install之后,其它的拓展包都能順利安裝,車到半途,突然殺出了一坨timeout
the *****&^%$%$##@#@#$%^^ 'https://github.com/bobthecow/psysh.git' $%^&**((()&^&^%%$$## timeout
對!沒錯,大概就是上面這貨。
這個時候怎么能不換源呢!
composer config -g repo.packagist composer https://packagist.phpcomposer.com
什么鬼,換源之后還是不行,是時候上把github拉出來祭天了!
上github找到之前的項目源,切換到框架需要的版本,沒錯,我可恥的 download ZIP
了,如下圖
下載之后上傳至項目vendor,解壓,一氣呵成~
再次運行 composer install
和大家猜想的一樣,完美收宮~
包位置如下