在Windows 10中安装laravel安装程序时出现错误 [英] Getting error while installing laravel installer in window 10

查看:291
本文介绍了在Windows 10中安装laravel安装程序时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows 10,并且已安装composer.当我尝试使用以下命令全局安装laravel安装程序时:

I am using Windows 10 and composer is installed. When I try to install laravel installer globally using this command:

composer global require laravel/installer

[Composer\Downloader\TransportException]
The "https://repo.packagist.org/packages.json" 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.

这意味着未下载软件包.我没有使用任何代理服务器. 作曲家的诊断结果如下:

It means package not downloaded. I am not using any proxy server. Composer diagnose result is listed below:

Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: 
[Composer\Downloader\TransportException] The "http://repo.packagist.org/packages.json" 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.

Checking https connectivity to packagist: 
[Composer\Downloader\TransportException] The "https://repo.packagist.org/packages.json" 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.

Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The 
"https://api.github.com/rate_limit" 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.

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.0
PHP version: 7.2.1
PHP binary path: E:\xampp\php\php.exe

推荐答案

您使用任何防病毒软件吗? 如果是,请尝试禁用它,然后检查.

Do you use any antivirus? If yes try to disable then check.

有时Mcafe禁止下载packagist.

Sometime Mcafe prevent to download packagist.

这篇关于在Windows 10中安装laravel安装程序时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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