文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php教程>解决问题:composer failed to open stream: Operation now in progress

解决问题:composer failed to open stream: Operation now in progress

时间:2021-03-25  来源:互联网

今天PHP爱好者给大家带来composer failed to open stream: Operation now in progress 解决方法,希望对需要的朋友有所帮助!快来了解一下吧。

composer failed to open stream: Operation now in progress 解决

最近遇到一个问题,一直不知道如何解决,网上搜到很多方法,都没效果

4959b27f13fdf268b60a2ce1ec0fb64.png

一开始以为是不支持ssl ,检查发现是支持的

php -i | grep -i ssl
SSL => Yes
SSL Version => OpenSSL/1.0.2r
core SSL => supported
extended SSL => supported
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2r  26 Feb 2019
OpenSSL Header Version => OpenSSL 1.0.2q  20 Nov 2018
Openssl default config => /usr/local/etc/openssl/openssl.cnf
openssl.cafile => /usr/local/etc/openssl/cacert.pem => /usr/local/etc/openssl/cacert.pem
openssl.capath => /usr/local/etc/openssl => /usr/local/etc/openssl
SSL support => enabled
OpenSSL support => enabled

后来看有人说要更新ssl 秘钥

wget http://curl.haxx.se/ca/cacert.pem

然后在php.ini 配置

curl.cainfo=/usr/local/etc/openssl/cacert.pem
openssl.cafile=/usr/local/etc/openssl/cacert.pem
openssl.capath=/usr/local/etc/openssl

都没什么效果,看来并不是因为这些
执行composer diagnose 之后结果

composer diagnose

cfc527ff56e7a12b29e9b48e286d74c.png

然后逐个解决错误吧,首先是github fail 了,网上google 了下,发现需要设置一个token ,之前怎么不需要呢 ,也是奇怪,那先试试

composer config --global github-oauth.github.com <token>
or
//在composer.json 里加入
"github-oauth":{
"github.com":"{token}" //替换成自己token
}

token 生成在 https://github.com/settings/t...
执行composer diagnose

Checking composer.json: WARNING
require.illuminate/redis : unbound version constraints (*) should be avoided
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 1.8.4
PHP version: 7.1.19
PHP binary path: /usr/bin/php

搞定!

以上就是解决问题:composer failed to open stream: Operation now in progress的详细内容,更多请关注php爱好者其它相关文章!

相关阅读更多 +
最近更新
排行榜 更多 +
元梦之星最新版手游

元梦之星最新版手游

棋牌卡牌 下载
我自为道安卓版

我自为道安卓版

角色扮演 下载
一剑斩仙

一剑斩仙

角色扮演 下载