composer update 报错 SSL certificate problem 的解决办法
· 技术笔记 · 0 条评论

装依赖时 composer 直接报 SSL 证书错误。国内网络下这个提示很常见,原因是连不上 packagist 官方源,换镜像就好。

composer require elasticsearch/elasticsearch
https://repo.packagist.org could not be fully loaded (curl error 60 while downloading https://repo.packagist.org/packages.json: SSL certificate problem:
unable to get local issuer certificate), package information was loaded from the local cache and may be out of date
打开composer.json文件

把

"repositories": {
   
    }

替换为

"repositories": {
        "packagist": {
            "type": "composer",
            "url": "https://mirrors.aliyun.com/composer/"
        }
    }

需要有人帮你把网站弄好?

上面这些问题我基本都修过。把报错截图和现象说清楚,我 30 分钟内告诉你:能不能修、多少钱、多久交付。

看服务与报价 复制微信号 发邮件

不接资源站、私服、外挂类项目。先说清需求,我判断能不能做之后再报价。


Warning: Undefined array key "permalink" in /www/users/HK1501351/WEB/usr/themes/pinghsu-master/functions.php on line 302
←

Warning: Undefined array key "permalink" in /www/users/HK1501351/WEB/usr/themes/pinghsu-master/functions.php on line 321
→
↓ ↑
评论
微信 邮件 报价