【问题标题】:unable to install composer for symfony无法为 symfony 安装作曲家
【发布时间】:2016-09-28 09:53:01
【问题描述】:

我正在使用我的工作组织提供的计算机,并且我没有任何更改防火墙的权限,因为我只是一个用户。

我正在尝试安装 Composer 以启动 symfony 2 项目。当我尝试安装 Composer exe 文件时,我看到了这条消息 - The "https://getcomposer.org/versions" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed failed to open stream: Cannot connect to HTTPS server through proxy

我用谷歌搜索了,但所有给出的解决方案都与防火墙有关,只能由管理员解决。

【问题讨论】:

  • Composer 内部使用 PHP 下载所有内容。 AFAIK PHP 5.5 在某些时候遇到了解析证书的问题。你能运行<?php file_get_contents('https://github.com/') ?> 并告诉我们它是否会触发任何错误吗?

标签: symfony composer-php windows-firewall


【解决方案1】:

您似乎遇到了网络问题:Cannot connect to HTTPS server through proxy。您可能想要解决这个问题,但由于您无权访问网络设置,因此使用 https://getcomposer.org/download/ 中的 Manual Download 选项会更容易。只需从this url 下载composer.phar 文件

【讨论】:

  • certificate verify failed 是问题,不是网络问题。
猜你喜欢
  • 2017-08-13
  • 2014-10-12
  • 1970-01-01
  • 2023-03-03
  • 2018-03-20
  • 2016-08-14
  • 2019-11-28
  • 2013-07-29
  • 2018-07-03
相关资源
最近更新 更多