Heim >Backend-Entwicklung >PHP-Tutorial >composer更新失败。

composer更新失败。

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:18:112430Durchsuche

  1. 描述你的问题
    composer selfupdate的时候报错了。

  2. 贴上报错信息

<code>  The "https://getcomposer.org/composer.phar" file could not be downloaded: SSL: crypto enabling timeout
  Failed to enable crypto
  failed to open stream: operation failed```

已经用lantern可以翻墙了。但是更新还是出错。</code>

回复内容:

  1. 描述你的问题
    composer selfupdate的时候报错了。

  2. 贴上报错信息

<code>  The "https://getcomposer.org/composer.phar" file could not be downloaded: SSL: crypto enabling timeout
  Failed to enable crypto
  failed to open stream: operation failed```

已经用lantern可以翻墙了。但是更新还是出错。</code>

1.save ca-bundle.crt to your local path
2.double click ca-bundler.crt to import it
3.add the two line to php.ini

<code>curl.cainfo=d:/download/ca-bundle.crt  
openssl.cafile=d:/download/ca-bundle.crt
</code>

4.try to install composer-setup.exe agin.

refer to:https://github.com/composer/composer/issues/2798

lantern只是对浏览器有效吧

lantern mac上只是打开一个网页吗

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn