composer安装laravel出现的问题 求解答

xufeiyue001 2018-12-22 12:02:33
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1

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

To enable extensions, verify that they are enabled in your .ini files:

C:\phpStudy\PHPTutorial\php\php-7.2.1-nts\php.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
Application ready! Build something amazing.
laravel
...全文
1451 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
pig510520 2019-08-08
  • 打赏
  • 举报
回复
fileinfo 扩展问题 打开后 重启下服务
He195501 2019-06-14
  • 打赏
  • 举报
回复
第一种:打开extension=php_fileinfo.dll 就可以了 第二种:用cmd命令看下你的 php -v 版本是多少 如果不是7.2.1的话 你在系统变量中把你的版本更换下(https://blog.csdn.net/haisley/article/details/82080927) 记得还需要把你的bat和phar放在你对应的php版本下面 同php.exe目录
lanshs 2019-01-03
  • 打赏
  • 举报
回复
the requested PHP extension fileinfo is missing from your system.
改一下配置文件,加上这个拓展
yt_php 2018-12-24
  • 打赏
  • 举报
回复
可能是扩展问题 看下lara手册 安装所需要打开的php扩展 在php.ini中打开相应的扩展即可
xuzuning 2018-12-22
  • 打赏
  • 举报
回复
只有 laravel 放弃了 composer 依赖,才可能真正强大
由于网络和墙的原因,约定的加载项无法下载,从而导致问题的出现

其实 composer 就是垃圾,其强制捆绑的行径,并不亚于特朗普
下雨的声音丶 2018-12-22
  • 打赏
  • 举报
回复
叫你把php的 fileinfo 扩展打开

4,251

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧