boxmoe_header_banner_img

张兴海

加载中

文章导读

PHP项目运行报错,解决Composer Installing dependencies from lock file,提示需要composer update


avatar
Starsea 2024年8月30日 21

报错代码如下

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.

此时更新update是更新不了的,composer的版本已是当前最新,或者说是已经是适合当前版本还提示更新,目前没有找到根本原因,先预留坑位后续补充,有好友友知道的可以评论或者私信。

解决这个问题只需

composer install --ignore-platform-reqs



评论(0)

查看评论列表

暂无评论


发表评论

表情 颜文字

插入代码