composer安装captcha报错Your requirements could not be resolved to an installable set of packages. Pro

用命令 composer require topthink/think-captcha安装报错:composer安装captcha报错Your requirements could not be resolved to an installable set of packages. Pro
意思就是呢的thinkphp版本与所安装的captcha版本不匹配
我的thinkphp版本是5.0.24,所以captcha要1.的版本
composer require topthink/think-captcha=1.
就可以了

默认是3.0的,thinkphp6版本的,2.0是thinkphp5.1版本的