Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装程序包时出错(安装失败,将./composer.json还原为其原始内容。)(Laravel管理程序包-Voyager)_Laravel_Package_Composer Php_Voyager - Fatal编程技术网

安装程序包时出错(安装失败,将./composer.json还原为其原始内容。)(Laravel管理程序包-Voyager)

安装程序包时出错(安装失败,将./composer.json还原为其原始内容。)(Laravel管理程序包-Voyager),laravel,package,composer-php,voyager,Laravel,Package,Composer Php,Voyager,我想安装一个laravel管理包-voyager 1.3版,所以当我运行这个cmd$composer require tcg/voyager时,我总是遇到这个错误,是关于composer.json文件的 Using version ^1.3 for tcg/voyager Loading composer repositories with package information Updating dependencies (including require-dev) Your require

我想安装一个laravel管理包-voyager 1.3版,所以当我运行这个cmd
$composer require tcg/voyager
时,我总是遇到这个错误,是关于composer.json文件的

Using version ^1.3 for tcg/voyager
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - tcg/voyager v1.3.0 requires intervention/image ^2.4 -> satisfiable by intervention/image[2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0, 2.5.1].
    - tcg/voyager v1.3.1 requires intervention/image ^2.4 -> satisfiable by intervention/image[2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0, 2.5.1].
   - intervention/image 2.4.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.4.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - Installation request for tcg/voyager ^1.3 -> satisfiable by tcg/voyager[v1.3.0, v1.3.1].

  To enable extensions, verify that they are enabled in your .ini files:
    - C:\AppServ\php7\php.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 to its original content.
这是composer.json文件: {


,你知道怎么解决吗?我的laravel版本:6.12

尝试在
php.ini
文件中启用
php\u fileinfo.dll
。只需从下面的行中删除
,然后重新启动服务器

;extension=php_fileinfo.dll

出于好奇:你读过那个错误消息吗?它很直接地告诉你该怎么做
;extension=php_fileinfo.dll