Composer Your requirements could not be resolved to an installable set of packages
Composer install 时候报错:
Composer update 时候报错:
Your requirements could not be resolved to an installable set of packages
Problem 1
Root composer json requires topthink/framework 5 1.*, found topthink/framework [v5. 1. 41] in the lock file but not in remote repositories, make sure you av d updating this package to keep the one from the lock file
解决方案一:
composer update --ignore-platform-regs
使用强制安装更新
解决方案二:
更换composer镜像地址;
使用:
"repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
}
或者:
"repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.org"
}
}
切换 镜像地址后一般可以解决这个问题;
其他问题 :
出现The "topthink/think-installer" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.1.0")
解决步骤:
①清除composer之前的镜像:composer config -g --unset repos.packagist
②更新thinkPHP版本:composer update topthink/framework --no-plugins
③重新安装插件:composer update
其他解决方案:
① 切换项目文件夹
② 运行:composer config -g repo.packagist composer https://packagist.org
文章来源:刘俊涛的博客欢迎关注公众号、留言、评论,一起学习。
__________________________________________________________________________________
若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)
你要保守你心,胜过保守一切。
本文来自博客园,作者:刘俊涛的博客,转载请注明原文链接:https://www.cnblogs.com/lovebing/p/15684815.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
2019-12-13 vi编辑器操作 快捷键
2017-12-13 爸爸的歌
2016-12-13 smarty下如何将一个数保存为两位小数