2

我用于laravel 5.4我的项目并安装voyager 管理包 它显示错误。我该如何解决这些错误?

PHP version - PHP 5.6.31

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

  Problem 1
    - tcg/voyager v1.1.0 requires intervention/image ^2.4 -> satisfiable by intervention/image[2.4.0, 2.4.1].
    - tcg/voyager v1.1.1 requires intervention/image ^2.4 -> satisfiable by intervention/image[2.4.0, 2.4.1].
    - intervention/image 2.4.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.4.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - Installation request for tcg/voyager ^1.1 -> satisfiable by tcg/voyager[v1.1.0, v1.1.1].

  To enable extensions, verify that they are enabled in those .ini files:
    - C:\Program Files (x86)\iis express\PHP\v5.6\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.
4

2 回答 2

2

如果php.ini文件中没有php_fileinfo.dll,则检查 x ampp/php/ext文件夹(如果该文件夹中有 php_fileinfo.dll 文件)。如果你有 dll 文件然后添加

extension=php_fileinfo.dll

php.ini 文件中的这一行。如果文件夹中没有 dll 文件,则根据您的 PHP 版本从 Internet下载,并将其放入 xampp/php/ext文件夹并添加上面的 php.ini 行。之后重新启动 xampp。

dll文件的下载链接

于 2018-05-04T08:39:04.973 回答
0

要在 Windows 上安装/激活扩展,可以执行以下操作

打开提到的ini文件(C:\Program Files (x86)\iis express\PHP\v5.6\php.ini

然后搜索extension=php_fileinfo.dll并确保它已被注释掉。

关闭并重新打开命令行之后,安装应该会成功。

于 2018-05-04T08:03:56.003 回答