验证码扩展不能安装,版本依赖问题

➜  bbs.sdc-dev.top git:(develop) ✗ composer require "mews/captcha" 
Using version ^3.2 for mews/captcha
./composer.json has been updated
Running composer update mews/captcha
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mews/captcha[3.2.0, ..., 3.2.6] require intervention/image ~2.5 -> satisfiable by intervention/image[2.5.0, 2.5.1].
    - intervention/image[2.5.0, ..., 2.5.1] require guzzlehttp/psr7 ~1.1 -> found guzzlehttp/psr7[1.1.0, ..., 1.x-dev] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires mews/captcha ^3.2 -> satisfiable by mews/captcha[3.2.0, ..., 3.2.6].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
最佳答案

你好

提示 php8 不兼容,尝试将 php 版本降到 7.4

3年前 评论
讨论数量: 3

你好

提示 php8 不兼容,尝试将 php 版本降到 7.4

3年前 评论
➜  bbs.sdc-dev.top git:(develop) ✗ composer require "mews/captcha" 
Using version ^3.2 for mews/captcha
./composer.json has been updated
Running composer update mews/captcha
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mews/captcha[3.2.0, ..., 3.2.6] require intervention/image ~2.5 -> satisfiable by intervention/image[2.5.0, 2.5.1].
    - intervention/image[2.5.0, ..., 2.5.1] require guzzlehttp/psr7 ~1.1 -> found guzzlehttp/psr7[1.1.0, ..., 1.x-dev] but the package is fixed to 2.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires mews/captcha ^3.2 -> satisfiable by mews/captcha[3.2.0, ..., 3.2.6].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
3年前 评论

@MArtian 麻烦问一下,换了PHP版本还是一样

3年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!