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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通