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 @   loganfan  阅读(350)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
点击右上角即可分享
微信分享提示