Composer安装“无法打开流” [英] Composer Install "Failed to open stream"

查看:195
本文介绍了Composer安装“无法打开流”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我运行安装程序,甚至手动安装Composer时,都会收到错误消息,使我无法完成安装,这很烦人。在Laragon中,该程序用于使用composer及其程序包创建许多不同的项目。这将不允许我使用Laravel,因为Composer无法正确安装和运行。

Whenever I run the installer, or even manually installing Composer, I get an error that disallowed me to complete the installation and it is irritating. In Laragon, a program used to create many different projects using composer and its packages. It will not allow me to use Laravel because the Composer will not properly install and function.

错误是:


https://getcomposer.org/versions 文件无法下载:
无法打开流:连接尝试失败,因为
的连接方在一段时间后未正确响应,或者
建立的连接失败,因为连接的主机未能对
做出响应。

The "https://getcomposer.org/versions" file could not be downloaded: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

https://getcomposer.org/ download / 1.4.2 / composer.phar.sig 文件
无法下载:无法打开流:连接尝试
失败,因为连接方在$之后不能正确响应b $ b时间段内,或已建立的连接失败,因为已连接的
主机未能响应。

The "https://getcomposer.org/download/1.4.2/composer.phar.sig" file could not be downloaded: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.


推荐答案

禁用我的IPV6已修复适用于我的作曲家安装和使用,这里是有关如何执行此操作的链接(在Windows 10上适用): https://www.youtube.com/watch?v=dK-IUs84V3w

Disabling my IPV6 fixed the composer installation and use for me, here is a link on how to do that (Works on Windows 10): https://www.youtube.com/watch?v=dK-IUs84V3w

这篇关于Composer安装“无法打开流”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆