LLEARNING NOTES

技术 · 思考 · 实践 · 成长

首页/Composer/正文

composer 安装 tp5 报错信息

Composer656 次阅读

错误1:

 curl error 60 while downloading https://packagist.laravel-china.org/packages.json: SSL peer certificate or SSH remo
  te key was not OK


可能是镜像问题:

使用中国镜像:https://pkg.xyz/


错误2:

 Could not find package topthink/think with stability stable.


删除之前的镜像:

composer config -g --unset repos.packagist


阿里云:

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

华为云:

composer config -g repo.packagist composer https://repo.huaweicloud.com/repository/php/


学会在学习中寻找乐趣,学会乐在其中并保持热情

评论交流

理性讨论,共同进步
验证码

相关文章

继续阅读