composer update时报错 SSL certificate problem: unable to get local issuer certificate

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/"
        }
    }

 

posted @ 2022-10-18 14:00  原来是个帅小伙  阅读(1034)  评论(0编辑  收藏  举报