[英]Composer error: no matching package found
I have two Symfony projects: project-a (root project) and project-b. 我有两个Symfony项目:project-a(根项目)和项目-b。
My composer.json file from project-a contains: 来自project-a的composer.json文件包含:
{
"name": "myprojects/project-a",
"require": {
"myprojects/project-b": "dev-master",
},
"repositories": [
{
"type": "vcs",
"url": "git@bitbucket.org:MYPROJECTS/project-b.git"
}
]
}
And my composer.json from project-b: 还有来自project-b的composer.json:
{
"name": "myprojects/project-b",
"require": {
"guzzlehttp/guzzle": "^6.3"
}
}
I need to update project-b but when I execute the command composer update myprojects/project-b
from project-a, I get this composer error: 我需要更新project-b但是当我从project-a执行命令composer update myprojects/project-b
,我得到了这个作曲家错误:
[Composer\\DependencyResolver\\SolverProblemsException] [作曲\\ DependencyResolver \\ SolverProblemsException]
Problem 1 问题1
- Installation request for myprojects/project-b dev-master -> satisfiable by myprojects/project-b[dev-master]. myprojects / project -b dev-master的安装请求 - > myprojects / project-b [dev-master]可满足。
- myprojects/project-b dev-master requires guzzlehttp/guzzle ^6.3 -> no matching package found. myprojects / project -b dev-master需要guzzlehttp / guzzle ^ 6.3 - >找不到匹配的包。
Potential causes: 可能的原因:
- A typo in the package name 包名中的拼写错误
- The package is not available in a stable-enough version according to your minimum-stability setting 根据您的最小稳定性设置,该包装没有足够稳定的版本
I have tried solve this adding "minimum-stability": "dev"
property to both composer.json files, but it doesn't works.. How can I solve this? 我已经尝试解决这个问题,将"minimum-stability": "dev"
属性添加到composer.json文件中,但它不起作用..我该如何解决这个问题?
Thanks. 谢谢。
As commented in guzzle/guzzle issue 861 : 如guzzle / guzzle问题861所述 :
Looks like an issue with your caching. 看起来像你的缓存问题。
Try clearing your composer cache, and self-update composer, then try again. 尝试清除您的composer缓存,并自行更新composer,然后再试一次。
The OP Wildchild confirms in the comments : OP Wildchild 在评论中证实:
composer clear cache and self-update solves my problem 作曲家清除缓存和自我更新解决了我的问题
"minimum-stability": "dev"
is not needed. "minimum-stability": "dev"
不需要"minimum-stability": "dev"
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.