Installation request for topthink/think-captcha ^3.0 -> satisfiable by topthink/think-captcha[v3.0.0].


ThinkPHP5.1安裝圖形驗證碼的時候報錯:

Problem 1
- Installation request for topthink/think-captcha ^3.0 -> satisfiable by topthink/think-captcha[v3.0.0].
- topthink/think-captcha v3.0.0 requires topthink/framework ^6.0.0 -> satisfiable by topthink/framework[6.0.x-dev, v6.0.0-rc2] but these conflict with your requirements or minimum-stability.

出錯原因:
當我們使用命令 composer require topthink/think-captcha下載驗證碼庫時,默認下載最新版本,當前最新版本是3.0,3.0版本是為ThinkPHP6准備的,所以我們需要下載2.0版本驗證碼庫,2.0版本的才是為ThinkPHP5.1准備的,所以當我們使用composer命令下載驗證碼庫的時候指定版本號即可

composer require topthink/think-captcha=2.*


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM