鍍金池/ 問答/PHP/ 最近 使用composer 安裝擴展包的時候總是出現(xiàn)各種問題?

最近 使用composer 安裝擴展包的時候總是出現(xiàn)各種問題?

Installation failed, reverting ./composer.json to its original content.


  [Symfony\Component\Process\Exception\ProcessTimedOutException]
  The process "git clone --no-checkout 'git@github.com:caouecs/Laravel-lang.git' '/home/vagrant/b
  bs_surest/vendor/caouecs/laravel-lang' --dissociate --reference '/home/vagrant/.composer/cache/
  vcs/https---github.com-caouecs-Laravel-lang.git/' && cd '/home/vagrant/bbs_surest/vendor/caouec
  s/laravel-lang' && git remote add composer 'git@github.com:caouecs/Laravel-lang.git' && git fet
  ch composer" exceeded the timeout of 300 seconds.


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no                       -scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable]                        [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu                       -autoloader] [--] [<packages>]...

vagrant@homestead:~/bbs_surest$
vagrant@homestead:~/bbs_surest$ <code>composer config --list</code>
-bash: syntax error near unexpected token `newline'
vagrant@homestead:~/bbs_surest$ composer require "mews/captcha:~2.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 (connecting...)

要不就是下載不了,要不就是報錯

我使用的是國內(nèi)鏡像, 國內(nèi)鏡像官網(wǎng)公告說在維護中,

clipboard.png

但是就算走國外鏡像或者下載git文件,為什么還是報這種錯誤呢

clipboard.png

回答
編輯回答
哎呦喂

嗯 切換到laravel-china 的鏡像了就沒問題了

2018年7月16日 18:48
編輯回答
念舊

確實也發(fā)現(xiàn)了這種問題,我先切換到了laravel鏡像

2017年9月9日 18:22