composer instal出现Your lock file does not contain a compatible set of packages.

# 执行 composer instal 提示
Your lock file does not contain a compatible set of packages. Please run composer update.

[root@VM-0-14-centos code]# composer install
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.3 and an update of this package was not requested.
    - league/flysystem 1.1.3 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem 2

# 可以执行 composer install --ignore-platform-reqs
[root@VM-0-14-centos code]# composer install --ignore-platform-reqs 
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 1 install, 0 updates, 0 removals

循环
请先登录后发表评论
  • latest comments
  • 总共0条评论