Composer ext-fileinfo 报错
在使用AMH 宝塔 等安装Flarum,发现Composer无法正常工作,显示错误:
requires ext-fileinfo * -> it is missing from your ...
www用户切换至root用户时正常
实际上在AMH>>网站>> 拓展安装 添加了 fileinfo
/usr/local/php-8.3/bin/php composer.phar require fof/merge-discussions:"*"
Problem 1
- intervention/image 2.7.2 requires ext-fileinfo * -> it is missing from youem. Install or enable PHP's fileinfo extension.
- flarum/core v1.8.5 requires intervention/image 2.5.* || ^2.6.1 -> satisfia intervention/image[2.7.2].
使用--ignore-platform-reqs
忽略即可,扩展运行正常
compose require fof/merge-discussions:"*" --ignore-platform-reqs