首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Symfony的Composer安装/更新失败,出现302个错误

Symfony的Composer安装/更新失败,出现302个错误
EN

Stack Overflow用户
提问于 2017-08-23 21:58:34
回答 1查看 2.2K关注 0票数 0

我已经安装了composer并从git服务器下载了Symfony应用程序,并且在安装或更新composer时遇到了问题(同样的问题)。以下是一次更新的输出:

代码语言:javascript
复制
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 38 installs, 0 updates, 0 removals
  - Installing psr/log (1.0.2): Downloading (failed)       
Downloading (failed)       
Downloading (failed)    Failed to download psr/log from dist: The "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" file could not be downloaded (HTTP/1.1 302 Found)
    Now trying to download from source
  - Installing psr/log (1.0.2): Cloning 4ebe3a8bf7 from cache
  - Installing monolog/monolog (1.23.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.5.0): Loading from cache
  - Installing twig/twig (v2.4.3): Loading from cache
  - Installing symfony/polyfill-util (v1.5.0): Downloading (100%)         
  - Installing paragonie/random_compat (v2.0.10): Downloading (failed)       
Downloading (failed)       
Downloading (failed)    Failed to download paragonie/random_compat from dist: The "https://api.github.com/repos/paragonie/random_compat/zipball/634bae8e911eefa89c1abfbf1b66da679ac8f54d" file could not be downloaded (HTTP/1.1 302 Found)
    Now trying to download from source
  - Installing paragonie/random_compat (v2.0.10): Cloning 634bae8e91 from cache
  - Installing symfony/polyfill-php70 (v1.5.0): Downloading (100%)         
  - Installing symfony/polyfill-php56 (v1.5.0): Downloading (100%)         
  - Installing symfony/symfony (v3.3.6): Downloading (failed)       
Downloading (failed)       
Downloading (failed)    Failed to download symfony/symfony from dist: The "https://api.github.com/repos/symfony/symfony/zipball/6f80cbd2dd89c5308b14e03d806356fac72c263e" file could not be downloaded (HTTP/1.1 302 Found)
    Now trying to download from source
  - Installing symfony/symfony (v3.3.6): Cloning 6f80cbd2dd


  [Symfony\Component\Process\Exception\ProcessTimedOutException]               
  The process "git clone --no-checkout 'https://github.com/symfony/symfony.gi  
  t' '/var/www/html/beyondrgtt/vendor/symfony/symfony' && cd '/var/www/html/b  
  eyondrgtt/vendor/symfony/symfony' && git remote add composer 'https://githu  
  b.com/symfony/symfony.git' && git fetch composer" exceeded the timeout of 3  
  00 seconds.

我在过去的几个小时里一直在尝试,所以这可能是github服务器的一个问题,很快就会消失的。有没有人遇到过这个问题?我也尝试过--首选-source,花了很长时间安装symfony/symfony和其他几个,然后显示:

代码语言:javascript
复制
[RuntimeException]                                                           
  Could not scan for classes inside "/var/www/html/projectname/vendor/symfony/  
  symfony/src/Symfony/Component/Intl/Resources/stubs" which does not appear t  
  o be a file nor a folder
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-24 11:30:39

似乎这个问题是一个暂时的问题(我猜是在github上),资源不可用,所以它正在尝试重定向。

如果将来发生这种情况,似乎最好的办法是等待几个小时(在本例中大约是3到4个小时),看看问题是否会自行解决。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45841845

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档