安装扩展报错
composer require 2nrwls/audio:"*"
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
./composer.json has been updated
Running composer update 2nrwls/audio
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- intervention/image 2.7.2 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- flarum/core v1.8.9 requires intervention/image 2.5.* || 2.6.1 -> satisfiable by intervention/image[2.7.2].
- flarum/core is locked to version v1.8.9 and an update of this package was not requested.
To enable extensions, verify that they are enabled in your .ini files:
- /www/server/php/80/etc/php-cli.ini
You can also run php --ini
inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
我的解决办法是宝塔里面除php7.4以外的版本全部删除,问题立马解决!!!