标签:resolved set requirements composer repositories 报错 Composer packagist
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"
}
}
切换 镜像地址后一般可以解决这个问题;
文章来源:刘俊涛的博客欢迎关注公众号、留言、评论,一起学习。
__________________________________________________________________________________
若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)
标签:resolved,set,requirements,composer,repositories,报错,Composer,packagist 来源: https://www.cnblogs.com/lovebing/p/15684815.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。