我改了加速源,Composer require 也是各种超时,有什么好的办法吗?
vagrant@homestead:~/Code/larabbs$ composer config -g repo.packagist composer https://packagist.phpcomposer.com
vagrant@homestead:~/Code/larabbs$ composer require "overtrue/laravel-lang:~3.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing caouecs/laravel-lang (3.0.54): Downloading (failed)
Downloading (failed)
Downloading (failed) Failed to download caouecs/laravel-lang from dist: The "https://api.github.com/repos/caouecs/Laravel-lang/zipball/eaa1e26eb643d7fc696d410b45e55290143e1f7f" file could not be downloaded: SSL: Connection reset by peer
Failed to enable crypto
failed to open stream: operation failed
Now trying to download from source
- Installing caouecs/laravel-lang (3.0.54): Cloning eaa1e26eb6
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone --no-checkout 'https://github.com/caouecs/Laravel-lang
.git' '/home/vagrant/Code/larabbs/vendor/caouecs/laravel-lang' && cd '/home/v
agrant/Code/larabbs/vendor/caouecs/laravel-lang' && git remote add composer '
https://github.com/caouecs/Laravel-lang.git' && git fetch composer" exceeded
the timeout of 300 seconds.
推荐文章: