全新未拆封的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 了,如下图

clipboard.png

下载之后上传至项目vendor,解压,一气呵成~
…………………………
再次运行 composer install
…………………………………………

和大家猜想的一样,完美收宫~

包位置如下

clipboard.png

附上修改源的方法 https://pkg.phpcomposer.com

yankeys
73 声望9 粉丝

相见,才知道被忙碌挤压的思念…