作曲家下载错误

时间:2014-04-30 10:54:42

标签: php composer-php pear

执行时:

composer install

我得到以下输出:

Loading composer repositories with package informati
Installing dependencies (including require-dev)

[Composer\Downloader\TransportException]
The "http://packagist.org/p/phpunit/phpunit$abafcd02d9793416c76c78da3f1fafa0bc4da3ac1acec5c80e51d7904589ea30.json"
file could not be downloaded: send of 103 bytes failed with errno=10053
An established connection was aborted by the software installed on the host-computer.
(...)

在网络级别上,我看到服务器发送的TCP数据包设置为RST(重置)平面。

有谁知道这里有什么问题?

我的配置:

  • Windows 8.1
  • Apache 2.4
  • PHP 5.5.11
  • PEAR版本:1.9.4

的php.ini:

extension=php_openssl.dll

allow_url_fopen = On
allow_url_include = On

2 个答案:

答案 0 :(得分:4)

卸载我在计算机上安装的 K9 Web Protection 软件是解决我问题的方法。

答案 1 :(得分:0)

我找到了解决方案。我不是100%确定这两件事中的哪一件有效,但它一定是其中之一:

1)我以安全模式启动(使用网络)。

在安全模式下,我运行:

composer install

工作正常。

2)仍处于安全模式我在CCleaner应用程序中运行一个注册表修复工具(它是一个免费的应用程序),并使用了干净的选项。

然后我以正常的Windows 8模式启动,删除了以安全模式创建的供应商目录和composer.lock文件。

之后:

composer install
Windows 8中的

工作正常。最后!

修改 虚假的希望。不幸的是,它从长远来看并不起作用。问题仍然存在!