我为我的项目使用了laravel 5.4,并安装了voyager admin package,它显示了一个错误。如何修复这些错误?
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.发布于 2018-05-04 16:39:05
如果您在php.ini文件中没有php_fileinfo.dll,那么如果您在xampp/php/ext文件夹中有php_fileinfo.dll文件,请检查该文件夹。如果您有dll文件,则添加
extension=php_fileinfo.dllphp.ini文件中的这一行。如果你没有dll文件在文件夹比下载它从互联网上根据你的PHP版本,和把它放在xampp/php/ext文件夹,并添加上面的行php.ini。之后重启xampp。
Download link for dll file
发布于 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并确保将其注释掉。
在关闭并重新打开命令行之后,安装应该会成功。
https://stackoverflow.com/questions/50169876
复制相似问题