文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

php laravel框架 项目搭建环境运行 composer install 遇到问题

2023-09-12 18:08

关注

错误代码如下:

Installing dependencies from lock file (including require-dev)Verifying lock file contents can be installed on current platform.Your lock file does not contain a compatible set of packages. Please run composer update.  Problem 1    - league/flysystem is locked to version 1.1.10 and an update of this package was not requested.    - league/flysystem 1.1.10 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.  Problem 2    - league/mime-type-detection is locked to version 1.11.0 and an update of this package was not requested.    - league/mime-type-detection 1.11.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.  Problem 3    - phpoffice/phpspreadsheet is locked to version 1.26.0 and an update of this package was not requested.    - phpoffice/phpspreadsheet 1.26.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.  Problem 4    - league/flysystem 1.1.10 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.    - league/flysystem-aws-s3-v3 1.0.30 requires league/flysystem ^1.0.40 -> satisfiable by league/flysystem[1.1.10].    - league/flysystem-aws-s3-v3 is locked to version 1.0.30 and an update of this package was not requested.To enable extensions, verify that they are enabled in your .ini files:    - D:\myphp\php.iniYou can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.

解决方案:

修改安装的 php 目录下,php.ini 解开 extension=fileinfo 的注释,去点前面的分号即可

 修改完后,在执行 composer install 命令,可能有两种情况如下:

  1. 执行成功,可以进行下一步
  2. 还出现错误,错误代码如下:
Installing dependencies from lock file (including require-dev)Verifying lock file contents can be installed on current platform.Your lock file does not contain a compatible set of packages. Please run composer update.  Problem 1    - phpoffice/phpspreadsheet is locked to version 1.26.0 and an update of this package was not requested.    - phpoffice/phpspreadsheet 1.26.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.To enable extensions, verify that they are enabled in your .ini files:    - D:\myphp\php.iniYou can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.Alternatively, you can run Composer with `--ignore-platform-req=ext-gd` to temporarily ignore these required extensions.

解决方案如下:

执行下面命令:composer install --ignore-platform-req=ext-gd

执行后就成功了!!!

来源地址:https://blog.csdn.net/weixin_43132073/article/details/131330128

阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-后端开发
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯