curl error 60 while downloading https://repo.packagist.org/packages.json
: SSL certificate problem: unable to get local issuer certificate
win10 通过 composer 安装 Laravel 报错。
win7 通过 composer 安装 Laravel 报错。
解决办法:下载 cacert.pem https://curl.se/docs/caextract.html
php.ini 文档设置: curl.cainfo="C:\Program Files\PHP\cacert.pem"
使用阿里的镜像
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/