composer install 报 SSL connection timeout

In CurlDownloader.php line 389:
                                                                                                    
  curl error 28 while downloading https://repo.packagist.org/packages.json: SSL connection timeout

冷暖自知一抹茶ck

        解决:更改为国内镜像源(我这里选的阿里源)

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

        然后再下载就好了

冷暖自知一抹茶ck
请先登录后发表评论
  • 最新评论
  • 总共0条评论