作曲者selfupdate由对等方重置连接

时间:2018-07-10 13:17:37

标签: php windows ubuntu composer-php debian

我在Windows中使用ubuntu,当我运行composer selfupdate作曲家时会向我发送错误

[Composer\Downloader\TransportException] The "https://getcomposer.org/versions" file could not be downloaded: SSL: Connection reset by peer Failed to enable crypto failed to open stream: operation failed

在Windows的debian中是相同的错误。

但是当我在Windows Powershell上运行composer selfupdate

我没有任何错误。

conf ubuntu

php -v PHP 7.0.28-0ubuntu0.16.04.1 (cli) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.28-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

conf debian

php -v PHP 7.1.18-1+0~20180611145904.18+stretch~1.gbp2b32f6 (cli) (built: Jun 11 2018 14:59:07) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.1.18-1+0~20180611145904.18+stretch~1.gbp2b32f6, Copyright (c) 1999-2018, by Zend Technologies

配置窗口

Windows 10专业版 1803版 版本OS 17134.1

php -v PHP 7.0.23 (cli) (built: Aug 29 2017 06:13:57) ( ZTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

1 个答案:

答案 0 :(得分:1)

尝试禁用防病毒软件,或尝试根据所使用的客户端将连接列入白名单。
我已经在卡巴斯基遇到了这个问题。

一旦禁用,问题就会消失。