作者:ccM保佑加琳诺爱儿1984f | 来源:互联网 | 2022-12-02 16:42
我使用5.7v Laravel和7.2.1v PHP和作曲家的最后版本,但是当我想创建新项目时,出现了这些错误:
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.`
Udhav Sarvai..
26
首先,停止XAMPP/Wamp然后;
从xampp\php\php.ini中删除起始分号()以下代码.
;extension=fileinfo
然后重启你的XAMPP/Wamp.
注意:对于Windows,您可以在C:\ xampp\php\php.ini -Folder(Windows)或etc-Folder(在xampp-Folder中)中找到该文件.
1> Udhav Sarvai..:
首先,停止XAMPP/Wamp然后;
从xampp\php\php.ini中删除起始分号()以下代码.
;extension=fileinfo
然后重启你的XAMPP/Wamp.
注意:对于Windows,您可以在C:\ xampp\php\php.ini -Folder(Windows)或etc-Folder(在xampp-Folder中)中找到该文件.
2> 小智..:
问题似乎是错误消息所说的 - 您的系统缺少fileinfo PHP扩展.由于您使用的是Windows,请打开C:\ php-7\php.ini文件,搜索以下行,;
如果存在则删除开头:
extension=fileinfo