我回顾了堆栈溢出中的所有问题和解决方案。但是我没有解决这个问题。错误消息:
[InvalidArgumentException]
Could not find package selimppc/hello-world at any version for your
minimum-stability (stable). Check the package spelling or your minimum-stability
这是我的composer.json
文件::
{
"name": "Hello worlds Apps",
"description": "New Apps from SelimReza.com",
"type": "library",
"license": "MIT",
"authors": [{
"name": "Selim Reza",
"email": "me@selimreza.com"
}],
"require": {
"php": ">=5.6",
"selimppc/hello-world": "@dev"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"HelloWorld\": "src\HelloWorld\"
}
}
}
github url: https://github.com/selimppc/hello-world
我无法想象解决此错误的解决方案。另外,请让我知道解决这一问题的方法和原因。
预先感谢!
dev-Master不是有效的稳定性:
可用选项(按稳定性顺序(是dev,alpha,beta,rc和stable。
请参阅:https://getcomposer.org/doc/04-schema.md#minimum styability
也无法提及自己,您将不得不更改软件包中的名称。
如果我将名称和最小稳定性更改为DEV。它有效。
您不需要存储库,他们也指他们自己
{
"name": "some/new-name",
"description": "New Apps from SelimReza.com",
"type": "library",
"license": "MIT",
"authors": [{
"name": "Selim Reza",
"email": "me@selimreza.com"
}],
"require": {
"php": ">=5.6",
"selimppc/hello-world": "dev-master"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"HelloWorld\": "src\HelloWorld\"
}
}
}