安装tp8遇到报错 Your requirements could not be resolved to an installable set of packages.

dafenqi
2023-08-16 / 0 评论 / 28 阅读 / 正在检测是否收录...

Your requirements could not be resolved to an installable set of packages.

Your requirements could not be resolved to an installable set of packages.

    - topthink/think-filesystem[v2.0.0, ..., v2.0.1] require topthink/framework ^6.1 -> found topthink/framework[v6.1.0, ..., v6.1.4] but it conflicts with your root composer.json require (^8.0).
    - league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.1.4) does not satisfy that requirement.
    - league/mime-type-detection[1.4.0, ..., 1.12.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - topthink/think-filesystem v2.0.2 requires league/flysystem ^2.0 -> satisfiable by league/flysystem[2.0.0, ..., 2.5.0].
    - Root composer.json requires topthink/think-filesystem ^2.0 -> satisfiable by topthink/think-filesystem[v2.0.0, v2.0.1, v2.0.2].
...

查看了下资料说是php版本不符,打开composer.json发现代码只要求大于7.0.0可仍然报这个错误,不用太较真执行如下代码之后在运行之前的代码就ok

composer install --ignore-platform-reqs

或者

composer update --ignore-platform-reqs 
0

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/testblog.58heshihu.com/var/Widget/Archive.php on line 1032

评论 (0)

取消