首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Laravel voyager -无法解决需求

Laravel voyager -无法解决需求
EN

Stack Overflow用户
提问于 2018-05-04 15:50:58
回答 2查看 1.2K关注 0票数 2

我为我的项目使用了laravel 5.4,并安装了voyager admin package,它显示了一个错误。如何修复这些错误?

PHP version - PHP 5.6.31

代码语言:javascript
复制
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.
EN

回答 2

Stack Overflow用户

发布于 2018-05-04 16:39:05

如果您在php.ini文件中没有php_fileinfo.dll,那么如果您在xampp/php/ext文件夹中有php_fileinfo.dll文件,请检查该文件夹。如果您有dll文件,则添加

代码语言:javascript
复制
extension=php_fileinfo.dll

php.ini文件中的这一行。如果你没有dll文件在文件夹比下载它从互联网上根据你的PHP版本,和把它放在xampp/php/ext文件夹,并添加上面的行php.ini。之后重启xampp。

Download link for dll file

票数 2
EN

Stack Overflow用户

发布于 2018-05-04 16:03:56

To install/activate the extension on windows, the following can be done

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

然后搜索extension=php_fileinfo.dll并确保将其注释掉。

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50169876

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档