我使用5.7v Laravel和7.2.1v PHP和composer最后版本,但当我喜欢创建新项目时,出现了以下错误:
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.`发布于 2018-10-10 07:41:50
首先,停止XAMPP/Wamp,然后从您的xampp\php\php.ini中删除开始分号( ; )如下代码。
;extension=fileinfo或在带有IIS的窗口中
extension=php_fileinfo.dll然后重新启动XAMPP/Wamp。
注意:在C:\xampp\php\php.ini-Folder ()或etc-文件夹(xampp-文件夹)中可以找到 For Windows。
发布于 2018-10-10 07:30:49
问题似乎是错误消息说的-您的系统缺少文件信息PHP扩展。由于您在Windows上,打开C:\php-7\php.ini文件,搜索以下行,如果存在,则删除开头的;:
extension=fileinfo或在带有IIS的窗口中
extension=php_fileinfo.dll发布于 2020-05-01 05:14:00
只要取消评论 extension=fileinfo in php.ini,即使没有xampp,它也为我工作。
https://stackoverflow.com/questions/52734707
复制相似问题