我想在我的公司电脑上安装composer(我正在使用Windows 10)。不幸的是我们有一个代理,我无法安装作曲家。
当我设置代理网址时出现此消息:http://192.168.0.2:80
并单击安装:
无法下载“https://getcomposer.org/versions”文件: 未能打开流:Ein Socketvorgang bezog sich auf einnichtverfügbaresNetzwerk。
我将环境变量设置为:
http_proxy = http://192.168.0.2:80
https_proxy = https://192.168.0.2:80
HTTPS_PROXY_REQUEST_FULLURI = false
但这不起作用。
更新1:
不知怎的,我安装了作曲家。当我去cmd并写composer diag
时,我得到了这个信息:
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: WARNING
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out
Failed to enable crypto
failed to open stream: operation failed
Checking HTTP proxy: FAIL
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL: Handshake timed out
Failed to enable crypto
failed to open stream: operation failed
Checking HTTP proxy support for request_fulluri: OK
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: Handshake timed out
Failed to enable crypto
failed to open stream: operation failed)
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL: Handshake timed out
Failed to enable crypto
failed to open stream: operation failed
Checking disk free space: OK