curl error 60 while downloading https://packagist.laravel-china.org/packages.json: Peer‘s Certifica

composer update时报错

curl error 60 while downloading https://packagist.laravel-china.org/packages.json: Peer‘s Certifica

  [Composer\Downloader\TransportException]  

 curl error 60 while downloading https://packagist.laravel-china.org/packages.json: Peer's Certificate has expired. 

很简单,打开composer.json文件

"repositories": {
        "packagist": {
            "type": "composer",
            "url": "https://packagist.laravel-china.org"
        }
    }

替换为

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

上一篇:犀牛书《JavaScript权威指南(原书第7版)》


下一篇:MindSpore深度学习框架介绍