Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of composer failed to open stream: Operation now in progress error

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

The editor will share with you how to solve the problem of composer failed to open stream: Operation now in progress error. I hope you will get something after reading this article. Let's discuss it together.

Composer failed to open stream: Operation now in progress solution

Recently, I encountered a problem, and I didn't know how to solve it. I found a lot of methods on the Internet, but they didn't work.

At first, I thought that ssl was not supported, but I checked and found that it was supported.

Php-I | grep-I sslSSL = > YesSSL Version = > OpenSSL/1.0.2rcore SSL = > supportedextended SSL = > supportedopensslOpenSSL support = > enabledOpenSSL Library Version = > OpenSSL 1.0.2r 26 Feb 2019OpenSSL Header Version = > OpenSSL 1.0.2q 20 Nov 2018Openssl default config = > / usr/local/etc/openssl/openssl.cnfopenssl.cafile = > / usr/local/etc/openssl/cacert.pem = > / usr/local/etc/openssl/cacert.pemopenssl.capath = > / usr/local/etc/openssl = > / usr/local/etc/opensslSSL support = > enabledOpenSSL support = > enabled

Later, I saw that someone said that the ssl key should be updated.

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

Then configure it in php.ini

Curl.cainfo=/usr/local/etc/openssl/cacert.pemopenssl.cafile=/usr/local/etc/openssl/cacert.pemopenssl.capath=/usr/local/etc/openssl

It didn't work. It doesn't seem to be because of this.

Results after composer diagnose execution

Composer diagnose

Then solve the mistakes one by one, first of all, github fail, google on the Internet, found that you need to set up a token, why not need it before, it is also strange, then try it first

Composer config-- global github-oauth.github.com or// adds "github-oauth" to composer.json: {"github.com": "{token}" / / replace it with its own token}

Token is generated in https://github.com/settings/t...

Execute composer diagnose

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

Got it!

After reading this article, I believe you have a certain understanding of "how to solve the problem of composer failed to open stream: Operation now in progress error". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report