当前位置: 首页 > 工具软件 > api-platform > 使用案例 >

composer install --ignore-platform-reqs

昝浩阔
2023-12-01

出现的问题:

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
    - topthink/think-installer is locked to version v2.0.0 and an update of this package was not requested.
    - topthink/think-installer v2.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
  Problem 2
    - topthink/think-installer v2.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
    - topthink/framework v5.1.36 requires topthink/think-installer 2.* -> satisfiable by topthink/think-installer[v2.0.0].
    - topthink/framework is locked to version v5.1.36 and an update of this package was not requested.

解决方法:

composer install --ignore-platform-reqs

 类似资料: