提问前请务必仔细阅读 如何排查故障 和 常见问题。
问题描述:
好久没装插件了, 这几天想添加个新插件,出现报错,好像是上次从1.6.2升级1.6.3后就没装过,是不是升级出来的bug,报错有点看不懂,请教一下大佬
报错内容:
[root@VM-0-14-centos yin.wiki]# composer require flarum-lang/chinese-simplified
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? y
Using version 1.3 for flarum-lang/chinese-simplified
./composer.json has been updated
Running composer update flarum-lang/chinese-simplified
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- rinvex/countries v6.1.2 requires php 7.2.0 -> your php version (8.0.17) does not satisfy that requirement.
- fof/discussion-language 1.2.6 requires rinvex/countries 6.1.2 7.0.1 8.1.0 -> satisfiable by rinvex/countries[v6.1.2].
- fof/discussion-language is locked to version 1.2.6 and an update of this package was not requested.
You can also try re-running composer require with an explicit version constraint, e.g. “composer require flarum-lang/chinese-simplified:*” to figure out if any version is installable, or “composer require flarum-lang/chinese-simplified:2.1” if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
调试模式报错内容:
已尝试的解决办法:
网址: