您的要求无法解决为laravel的一组可安装软件包 [英] Your requirements could not be resolved to an installable set of packages for laravel

查看:34
本文介绍了您的要求无法解决为laravel的一组可安装软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是5.7v Laravel和7.2.1v PHP和composer的最新版本,但是当我想创建新项目时,会出现以下错误:

I use 5.7v Laravel and 7.2.1v PHP and composer last version, but when I like to create new project these errors appeared:

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

Problem 1
    - Installation request for league/flysystem 1.0.47 -> satisfiable by league/flysystem[1.0.47]. 
    - league/flysystem 1.0.47 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
Problem 2  
    - league/flysystem 1.0.47 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.  
    - laravel/framework v5.7.9 requires league/flysystem ^1.0.8 -> satisfiable by league/flysystem[1.0.47]. 0 
    - Installation request for laravel/framework v5.7.9 -> satisfiable by laravel/framework[v5.7.9].

To enable extensions, verify that they are enabled in your .ini files:
    - C:\php-7\php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.`

推荐答案

首先,停止XAMPP/Wamp,然后从您的 xampp \中删除开始的分号(; )\php \ php.ini 以下代码.

First of all, stop the XAMPP/Wamp and then kindly remove the starting semicolon ( ; ) from your xampp\php\php.ini the following code.

;extension=fileinfo

或在具有IIS的Windows中

or in windows with IIS

extension=php_fileinfo.dll

然后重新启动XAMPP/Wamp.

And then restart your XAMPP/Wamp.

注意::对于Windows,您可以在 C:\ xampp \ php \ php.ini -文件夹(Windows)或etc-Folder(在xampp-Folder内).

NOTE: For Windows, you can find the file in the C:\xampp\php\php.ini-Folder (Windows) or in the etc-Folder (within the xampp-Folder).

这篇关于您的要求无法解决为laravel的一组可安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆