2016-12-07 42 views
0

如何解决下面的错误当每次如何修复作曲[作曲下载 TransportException]错误

/*// composer Error 
[Composer\Downloader\TransportException] 
    The "http://packagist.org/p/provider-2013%24fc1e20eb7ce69e30c5619d2a9d79fe3 
    441318692407fc723631fb16e38063890.json" file could not be downloaded: faile 
    d to open stream: A connection attempt failed because the connected party d 
    id not properly respond after a period of time, or established connection f 
    ailed because connected host has failed to respond. 

update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] 
[--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no 
-suggest] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] 
[-a|--classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--pre 
fer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]... */ 
+0

您正在使用哪个作曲家的版本? – Federkun

+0

我使用的作曲家版本是1.2.4 – Murugan

回答

0

添加在composer.json库更新作曲家的工作对我来说

{ “库 “:[{ ”packagist“:假 },{ ”类型“: ”作曲家“, ”URL“:” https://packagist.org/ “ }], ”需要“:{}, ” 需要-d ev“:{ ”phpunit/phpunit“:”*“ } }