gpt4 book ai didi

php - Composer : conflict with your requirements or minimum-stability

转载 作者:行者123 更新时间:2023-12-04 22:08:24 34 4
gpt4 key购买 nike

我正在尝试运行 composer require phpseclib/mcrypt_compat:dev-master在一个空目录中,并收到以下错误:

./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for phpseclib/mcrypt_compat dev-master -> satisfiable by phpseclib/mcrypt_compat[dev-master].
- phpseclib/mcrypt_compat dev-master requires phpseclib/phpseclib dev-master -> satisfiable by phpseclib/phpseclib[d
ev-master] but these conflict with your requirements or minimum-stability.


Installation failed, deleting ./composer.json.

我不明白。 https://github.com/phpseclib/phpseclib/blob/master/composer.json说最低要求的 PHP 版本是 5.6.1。还有两个其他库是必需的,但 Composer 并不是说​​其他​​库不兼容 - Composer 说 phpseclib/phpseclib 不兼容。

这是我输入 php -v 时得到的输出:
PHP 7.0.26 (cli) (built: Nov 22 2017 13:19:37) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

PHP 7.0.26 比 PHP 5.6.1 更新,PHP 5.6.1 是 phpseclib/phpseclib:dev-master 所需的最低版本。

有任何想法吗?

最佳答案

创建指定了最低稳定性的 composer.json 文件:

{
"require": {
"phpseclib/mcrypt_compat": "dev-master"
},
"minimum-stability": "dev"
}

http://getcomposer.org/doc/04-schema.md#minimum-stability

如果未指定,最低稳定性默认为稳定。

关于php - Composer : conflict with your requirements or minimum-stability,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48169727/

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