欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

composer更新失败。

程序员文章站 2024-01-29 19:22:10
...
  1. 描述你的问题
    composer selfupdate的时候报错了。

  2. 贴上报错信息

  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```

已经用*可以*了。但是更新还是出错。

回复内容:

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

  2. 贴上报错信息

  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```

已经用*可以*了。但是更新还是出错。

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

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

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

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

*只是对浏览器有效吧

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

相关标签: php composer