我有一个稳定的连接,但是当我在我的项目根目录上运行composer update
时,作曲者总是抛出Composer\Downloader\TransportException
,然后显示消息,指出我在下载文件时发生超时错误。作曲家(安装/更新)总是失败
运行后composer diagnose
,一切似乎都通过了测试。
我试图卸载,之后我无法安装作曲家。当我与curl -sS https://getcomposer.org/installer | php
,作曲家打印此下载作曲家流:
~ curl -sS https://getcomposer.org/installer | php -d detect_unicode=Off
All settings correct for using Composer
Downloading...
Download failed: Failed to open https://getcomposer.org/composer.phar (Operation timed out after 4994 milliseconds with 229148 out of 1016883 bytes received)
Downloading...
Download failed: Failed to open https://getcomposer.org/composer.phar (Operation timed out after 4988 milliseconds with 261916 out of 1016883 bytes received)
Downloading...
SlowTimer [5000ms] at curl: https://getcomposer.org/composer.phar
Download failed: Failed to open https://getcomposer.org/composer.phar (Operation timed out after 4996 milliseconds with 147228 out of 1016883 bytes received)
The download failed repeatedly, aborting.
我使用Ubuntu 14.04 LTS
。
关于为什么会一直发生的任何想法?
权限?尝试用'sudo'运行它。 – hcoat 2014-08-30 17:43:25
检查您的网络连接 – hek2mgl 2014-08-30 17:44:14
@ hek2mgl我的朋友的机器可以使用作曲家没有问题。 – srph 2014-08-30 17:46:54