Laravel Composer停止了工作

时间:2016-11-20 11:46:01

标签: laravel-5 composer-php

我的作曲家停止工作我不明白为什么。我试图在我的应用程序中撤消更改但仍然无法正常工作。所以我试图重新安装laravel,但现在我不能使用composer安装。我收到这条消息:

[Composer\Downloader\TransportException]                                     
The "https://packagist.org/packages.json" file could not be downloaded: 
failed to open stream: Connection timed out     

如果我运行作曲家诊断,我会得到这个:

 Checking composer.json: OK

Checking platform settings: OK

Checking git settings: OK

Checking http connectivity to packagist: WARNING

[Composer\Downloader\TransportException] The "http://packagist.org
/packages.json" file could not be downloaded: failed to open stream: 
Connection timed out

Checking https connectivity to packagist: WARNING

[Composer\Downloader\TransportException] The "https://packagist.org
/packages.json" file could not be downloaded: failed to open stream: 
Connection timed out

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: 


 [Composer\Downloader
\TransportException]                                     

 The "https://getcomposer.org/versions" file could not be downloaded: 
failed  

to open stream: Connection timed out     

1 个答案:

答案 0 :(得分:0)

我认为您可能存在连接问题。尝试重置您的互联网连接,然后重试。