最近 使用composer 安装扩展包的时候总是出现各种问题?

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...)

要不就是下载不了,要不就是报错

我使用的是国内镜像, 国内镜像官网公告说在维护中,

clipboard.png

但是就算走国外镜像或者下载git文件,为什么还是报这种错误呢

clipboard.png

阅读 5.9k
2 个回答

确实也发现了这种问题,我先切换到了laravel镜像

嗯 切换到laravel-china 的镜像了就没问题了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题