top-think / think-captcha

thinkphp 验证码类库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

安装报错,帮忙看下

TongFangyuan opened this issue · comments

bogon:~  zjh$ composer require topthink/think-captcha
Using version ^2.0 for topthink/think-captcha
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - topthink/think-captcha v2.0.1 requires topthink/framework 5.1.x-dev -> satisfiable by topthink/framework[5.1.x-dev] but these conflict with your requirements or minimum-stability.
    - topthink/think-captcha v2.0 requires topthink/framework 5.1.x-dev -> satisfiable by topthink/framework[5.1.x-dev] but these conflict with your requirements or minimum-stability.
    - Installation request for topthink/think-captcha ^2.0 -> satisfiable by topthink/think-captcha[v2.0, v2.0.1].


Installation failed, deleting ./composer.json.

已经解决,是因为2.0的最低兼容tp5 5.1的,本人项目是5.0

安装1.*版本就好了composer require topthink/think-captcha=1.*

解决链接