首页 > 其他 > 详细

Composer 安装 topthink/think-captcha 时报错 requires topthink/framework ^6.0.0 【已解决】

时间:2020-02-20 22:55:12      阅读:663      评论:0      收藏:0      [点我收藏+]

ThinkPHP 5.1 安装图形验证码的时候报错:

composer require topthink/think-captcha

技术分享图片

 

 

出错原因:


当我们使用命令 composer require topthink/think-captcha下载验证码库时,默认下载最新版本,当前最新版本是3.0,

3.0版本是为 ThinkPHP 6 准备的,所以我们需要下载 2.0 版本验证码库,2.0 版本的才是为 ThinkPHP5.1 准备的,

所以我们只要使用 composer 命令下载验证码库的时候指定版本号即可

composer require topthink/think-captcha=2.*

 

Composer 安装 topthink/think-captcha 时报错 requires topthink/framework ^6.0.0 【已解决】

原文:https://www.cnblogs.com/ryanzheng/p/12337301.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!