解决curl error 28 while downloading https://repo.packagist.org/p2/laravel/frame work.json: OpenSSL报错

安装、启动laravel框架时

执行“composer create-project –prefer-dist laravel/laravel 项目名称”时报错

curl error 28 while downloading https://repo.packagist.org/p2/laravel/frame work.json: OpenSSL

 

解决:更改镜像位置

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

Share