我的composer.json如下所示:
{
"minimum-stability": "dev"
}我正在尝试运行composer require phpseclib/phpseclib:dev-3.0 (基于https://stackoverflow.com/a/33526908/569976),但是当我尝试的时候,我得到了这个错误:
[InvalidArgumentException]
Could not find a matching version of package phpseclib/phpseclib. Check the package spelling, your version cons
traint and that the package is available in a stability which matches your minimum-stability (dev).3.0是一个有效的分支名称(https://github.com/phpseclib/phpseclib/tree/3.0),所以我不能完全确定问题是什么。
我还尝试使用这个作为我的composer.json:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/phpseclib/phpseclib.git"
}
],
"minimum-stability": "dev"
}不走运。
有什么想法吗?
发布于 2020-02-03 03:40:19
dev-branch约定用于看起来不像版本的分支。约定分支看起来像version,所以您需要在本例中使用branch.x-dev 3.0 - 3.0.x-dev。这在documentation中有解释。您还可以在Packagist上找到此软件包的可用版本列表。
https://stackoverflow.com/questions/60028601
复制相似问题