提问前请务必仔细阅读 如何排查故障 和 常见问题。
问题描述:
通过 composer 命令安装任何扩展均报错
报错内容:
'''
Your requirements could not be resolved to an installable set of packages.
Problem 1
- flarum/core is locked to version v1.2.0 and an update of this package was not requested.
- flarum/core v1.2.0 requires php >=7.3 -> your php version (7.2.33) does not satisfy that requirement.
Problem 2
- ianm/follow-users is locked to version 1.0.5 and an update of this package was not requested.
- ianm/follow-users 1.0.5 requires php 7.4 || 8.0 -> your php version (7.2.33) does not satisfy that requirement.
Problem 3
- flarum/core v1.2.0 requires php >=7.3 -> your php version (7.2.33) does not satisfy that requirement.
- webbinaro/flarum-age-check 0.0.6 requires flarum/core 1.0.0 -> satisfiable by flarum/core[v1.2.0].
- webbinaro/flarum-age-check is locked to version 0.0.6 and an update of this package was not requested.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
'''
已尝试的解决办法:
重装 PHP 环境/回滚服务器快照