我正在尝试使用composer require
从作曲家安装新的包,但后来显示错误
existing connection was forcibly closed by the remote host.
send of 95 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.
failed to open stream: Cannot connect to HTTPS server through proxy
https://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
[Composer\Downloader\TransportException]
The "http://packagist.org/p/jenssegers/date%24a796b298222b37954ea0f488a5b99d057114dda34ecead922188b0abf832faba.json
" file could not be downloaded: failed to open stream: HTTP request failed!
以下是composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json" file could not be downloaded: failed to open stream: HTTP request failed!
Checking https connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL: An existing connection was forcibly closed by the remote host.
send of 95 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.
failed to open stream: Cannot connect to HTTPS server through proxy
Checking HTTP proxy: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL: An existing connection was forcibly closed by the remote host.
send of 95 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.
failed to open stream: Cannot connect to HTTPS server through proxy
Checking HTTP proxy support for request_fulluri: WARNING
Unable to assess the situation, maybe packagist.org is down (The "http://packagist.org/packages.json" file could not be downloaded: failed to open stream: HTTP request failed! )
Checking HTTPS proxy support for request_fulluri: WARNING
Unable to assess the situation, maybe github is down (The "https://api.github.com/repos/Seldaek/jsonlint/zipball/1.0.0" file could not be downloaded: SSL: An existing connection was forcibly closed by the remote host.
send of 96 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.
failed to open stream: Cannot connect to HTTPS server through proxy)
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL: An existing connection was forcibly closed by the remote host.
send of 96 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.
failed to open stream: Cannot connect to HTTPS server through proxy
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: <somekey>
Dev Public Key Fingerprint: <somekey>
OK
Checking composer version:
[Composer\Downloader\TransportException]
The "https://getcomposer.org/versions" file could not be downloaded: SSL: An existing connection was forcibly close
d by the remote host.
send of 97 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host.
failed to open stream: Cannot connect to HTTPS server through proxy
diagnose
我没有使用任何代理。我试过了composer self-update
。我试图寻找其他解决方案,但找不到合适的解决方案。请帮忙!