gpt4 book ai didi

php - Composer/Packagist 找不到最低稳定性的包

转载 作者:可可西里 更新时间:2023-11-01 12:24:37 26 4
gpt4 key购买 nike

我正在尝试安装以下 Composer 包:

composer require cr/hashcli

这是我做的一个包。但是当我尝试安装它时,出现以下错误:

[InvalidArgumentException] Could not find package cr/hashcli at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability

我的 composer.json 如下:

{
"name": "cr/hashcli",
"description": "HashCLI - PHP CLI Tool For hashing",
"type": "library",
"keywords": ["hash", "cli"],
"license": "MIT",
"require": {
"php": ">=5.5"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
},
"bin":[
"src/hashCLI"
],
"autoload": {
"classmap": [
"src/"
]
},
"autoload-dev": {
"classmap": [
"tests/"
]
}
}

知道为什么会这样吗?我该如何解决这个问题?

最佳答案

这个包没有稳定版本。使用

composer require cr/hashcli:dev-master

关于php - Composer/Packagist 找不到最低稳定性的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41149552/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com