But these conflict with your requirements or minimum-stability(但是这些与您的要求或最低稳定性相冲突)
问题描述
您好,我在尝试安装 SparkPost PHP 库时遇到了这个问题:
Hi, I'm getting this problem when I try to install SparkPost PHP Library:
问题 1
- 请求的包 sparkpost/sparkpost No version set (parsed as 1.0.0) is satisfiable by sparkpost/sparkpost[No version set (parsed作为 1.0.0)] 但这些与您的要求相冲突或最低稳定性.
Problem 1
- The requested package sparkpost/sparkpost No version set (parsed as 1.0.0) is satisfiable by sparkpost/sparkpost[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
当我尝试执行此命令时出现:composer 需要 sparkpost/sparkpost
It appears when I try to execute this command:
composer require sparkpost/sparkpost
完整的控制台输出:
You are running Composer with SSL/TLS protection disabled.
Using version ^2.0 for sparkpost/sparkpost
./composer.json has been updated
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
- The requested package sparkpost/sparkpost No version set (parsed as 1.0.0) is satisfiable by sparkpost/sparkpost[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
作曲家文件:
{
"name": "sparkpost/sparkpost",
"description": "Client library for interfacing with the SparkPost API.",
"license": "Apache 2.0",
"authors": [
{
"name": "SparkPost"
}
],
"minimum-stability": "stable",
"scripts": {
"post-install-cmd": "post-install.sh",
"post-update-cmd": "post-install.sh",
"test": "./vendor/bin/phpunit",
"fix-style": "php-cs-fixer fix ."
},
"require": {
"php": "^5.6 || ^7.0",
"php-http/httplug": "^1.0",
"php-http/message": "^1.0",
"php-http/client-implementation": "^1.0",
"php-http/discovery": "^1.0",
"php-http/guzzle6-adapter": "^1.1",
"guzzlehttp/guzzle": "^6.2"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.4",
"mockery/mockery": "^0.9.4",
"friendsofphp/php-cs-fixer": "^1.11",
"nyholm/nsa": "^1.0",
"satooshi/php-coveralls": "dev-master",
"phpunit/phpcov": "2.*"
},
"autoload": {
"psr-4": {
"SparkPost\": "lib/SparkPost"
}
},
"autoload-dev": {
"psr-4": {
"SparkPost\Test\": "test/unit"
}
}
}
有什么办法吗?
PD:我尝试将 minimum-stability": stable"
设置为 dev"
,但我遇到了同样的错误p>
PD: I've tried to set "minimum-stability": "stable"
to "dev"
, but I have the same error
推荐答案
你可以在composer.json
中定义为:
"some-vendor/some-library": "@dev"
这应该推翻稳定性设置.
That should overrule the stability-setting.
这篇关于但是这些与您的要求或最低稳定性相冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:但是这些与您的要求或最低稳定性相冲突
基础教程推荐
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- 在多维数组中查找最大值 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01