安装fastadmin/tp5的管理后台,但我通过composer更新或安装时,总是提示我错误:composer的安装版本过高导致问题
Your requirements could not be resolved to an installable set of packages.
Problem 1
- topthink/think-installer[v1.0.0, ..., v1.0.12] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- topthink/framework v5.0.24 requires topthink/think-installer ~1.0 -> satisfiable by topthink/think-installer[v1.0.0, ..., v1.0.12].
- Root composer.json requires topthink/framework ~5.0.24 -> satisfiable by topthink/framework[v5.0.24].
You are using a snapshot build of Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report an issue to them to ask them to support Composer 2. To work around this you can run Composer with --ignore-platform-req=composer-plugin-api, but this may result in broken plugins and bigger problems down the line.
我的composer是通过以下方式安装的
php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
php composer-setup.php
解决方法: 使用阿里云的源,并对composer进行升级
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer selfupdate
本文详细记录了在安装FastAdmin管理后台时遇到的Composer版本过高问题,及如何通过更换阿里云源和升级Composer来解决这一难题。
7091

被折叠的 条评论
为什么被折叠?



