如何解决以下错误每次更新作曲家时
/*// 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 :(得分:0)
在composer.json中添加存储库,它为我工作
{ “存储库”:[{ “packagist”:false },{ “type”:“作曲家”, “url”:“https://packagist.org/” }], “要求”:{}, “require-dev”:{ “phpunit / phpunit”:“*” } }