解决Composer Installing dependencies from lock file

1、问题描述

解决Composer Installing dependencies from lock file
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.18.0 and an update of this package was not requested.
    - phpoffice/phpspreadsheet 1.18.0 requires ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.

2、原因

这是因为不匹配composer.json要求的版本。提示我的PHP 7版本太高,不符合composer.json需要的版本,但是在PHP 7下应该也是可以运行的,composer可以设置忽略版本匹配。

3、解决方案

composer install --ignore-platform-reqs

或者

composer update --ignore-platform-reqs

文章来源:https://www.cnaaa.net,转载请注明出处:https://www.cnaaa.net/archives/7223

(0)
安屠生的头像安屠生
上一篇 2023年2月14日 下午2:50
下一篇 2023年2月14日 下午4:03

相关推荐

  • Expect解决shell脚本的交互需求

    在linux系统中,shell脚本可以大大提高我们的工作效率。但遇到需要交互的场景时,shell脚本却无法解决。 简介 Expect语言是基于Tcl的。Tcl实际上是一个子程序库,这些子程序库可以嵌入到程序里从而提供语言服务。 最终的语言有点象一个典型的 Shell语言。里面有给变量赋值的set命令,控制程序执行的if,for,continue等命令,还能进…

    2022年11月15日
    1.1K00
  • find命令排除某些目录或文件

    使用-prune开关。例如,如果要排除misc目录,只需将a添加-path ./misc -prune -o到您的find命令中: find . -path ./misc -prune -false -o -name ‘*.txt’ 这是带有多个目录的示例: find . -type d \( -path dir1 -o -path dir2 -o -pat…

    2023年6月16日
    1.4K00
  • 开源网站监控利器:Utime Kuma部署指南

    🔍 Uptime Kuma 简介 GitHub 项目地址:https://github.com/louislam/uptime-kuma 一款开源自托管监控工具,支持多种协议检测(HTTP/TCP/Ping/DNS 等)和实时告警(飞书/钉钉/邮件等) 核心优势: 🚀 部署教程 Docker 部署 验证:访问 http://服务器IP:3001​ 完成初始化…

    2025年6月14日
    91500
  • Smartping安装

    smartping采用脚本调用方式运行,Linux使用 ./control , Windows使用 control.cmd Linux ./control build|run|start|stop|restart|status build : 源码编译,最终构建成至 bin run : 直接启动smartping start : 以nohup(deamon)…

    2023年2月9日
    1.5K00
  • 解决discuz论坛搬家:“Table ‘common_syscache’ is read only”问题

    网站搬家采用直接打包mysql数据库和网页文件的形式进行迁移,上传好mysql data目录里面的网站数据库至mysql存放数据库的目录里面,解压就行,我的存放数据库的路径是 /usr/local/mysql/var,上传好网站数据,解压,配置好数据库链接参数就行,网站就能正常连接上了,我本以为这已经是顺利迁移完成了,但后来操作的时候,发现只能读取数据库的内…

    2023年2月15日
    98100

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

在线咨询: QQ交谈

邮件:712342017@qq.com

工作时间:周一至周五,8:30-17:30,节假日休息

关注微信