PHPComposer使用错误处理

错误信息:

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.2.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.2.0] but it does not match the constraint.
- topthink/framework v5.1.35 requires topthink/think-installer 2.* -> satisfiable by topthink/think-installer[v2.0.0].
- topthink/framework is locked to version v5.1.35 and an update of this package was not requested.

 

貌似是composer版本问题,解决;

扩展和版本不配问题,使用了

****** composer update --no-plugins

然后加载出来了;

升级指定依赖;

composer require composer-plugin-api/composer-plugin-api:1.0.0

版本号可以升也可以降;

composer upate 依赖/依赖:版本号;

区别就是update需要修改lock然后降;

转载自CSDN博主「每天至少八杯水i」

原文链接:https://blog.csdn.net/weixin_43536495/article/details/124744170

posted @ 2023-04-11 11:06  loganfan  阅读(427)  评论(0)    收藏  举报