laravel报错mews/captcha is locked to version 3.2.4 and an update of this package was not requested.
作者:钓赛通
发布时间:2022-01-24
点击数:
Your requirements could not be resolved to an installable set of packages. Problem 1 - mews/captcha is locked to version 3.2.4 and an update of this package was not requested. - mews/captcha 3.2.4 requires php ^7.2 -> your php version (8.0.1) does not satisfy that requirement. Installation failed, reverting ./composer.json and ./composer.lock to their original content.
解决版本,直接忽略版本
在你的composer任意指令后面跟上这个即可
--ignore-platform-reqs
1
比如我是安装barryvdh/laravel-debugbar出现的
原本是:
composer require barryvdh/laravel-debugbar --dev
1
改成即可安装依赖成功
composer require barryvdh/laravel-debugbar --dev --ignore-platform-reqs