分享编程~
 

composer could not be fully loaded curl error 28 while downloading

could not be fully loaded curl error 28 while downloading https://repo.packagist.org/packages.json: Operation timed out after 10000 milliseconds with 0 out of 0 bytes received), package informa

天天特卖抢好货

https://repo.packagist.org could not be fully loaded (curl error 28 while downloading https://repo.packagist.org/packages.json: Operation timed out after 10000 milliseconds with 0 out of 0 bytes received), package information was loaded from the local cache and may be out of date



Installation failed, deleting ./composer.json.



[RuntimeException]

No composer.json present in the current directory (./composer.json), this may be the cause of the following exception.



[Composer\Downloader\TransportException]

curl error 28 while downloading https://repo.packagist.org/p2/workerman/workerman.json: Operation timed out after 10016 milliseconds with 0 out of 0 bytes received



require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...



require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...



解决方法

方法一、首先检查更新composer版本。

方法二、重新设置composer packagist。

命令如下: composer config -g repo.packagist composer https://packagist.phpcomposer.com

阿里云镜像:composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

重新加载插件 php composer.phar require --prefer-dist 插件名称



上一篇:PHP中openssl_encrypt加密openssl_decrypt解密各种算法应用下一篇:已有项目上传Git远程仓库步骤
赞(0) 踩(0)
您说多少就多少,您的支持是我最大的动力
赏金
微 信
赏金
支付宝
本文连接: https://www.yj521.com/article/226.html
版权声明: 本文为原创文章,版权归《越加网》所有,分享转载请注明出处!