您的要求无法解决为pinterest API的一组可安装软件包 [英] Your requirements could not be resolved to an installable set of packages for pinterest API
问题描述
这是 Github页面。这是我在作曲家中运行的命令:
This is the Github Page for API. This is the command I run in composer:
composer require dirkgroenen/Pinterest-API-PHP 0.2.11
这是我得到的错误
您的要求无法解决为一组可安装的软件包。
Your requirements could not be resolved to an installable set of packages.
问题1
-请求的软件包dirkgroenen / pinterest-api-php没有版本
dirkgroenen / pinterest-api-php [未设置版本(解析为1.0.0)]可满足set(解析为1.0.0)的要求,但是
与您的要求或最低稳定性冲突。 / p>
Problem 1 - The requested package dirkgroenen/pinterest-api-php No version set (parsed as 1.0.0) is satisfiable by dirkgroenen/pinterest-api-php[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
此处是包装专家页面。
composer.json
文件具有以下数据:
"require": {
"php": ">=5.4",
"ext-curl": "*"
},
"require-dev": {
"phpunit/phpunit": "4.7.*",
"vlucas/phpdotenv": "^2.2"
},
composr.json
文件与在packagist页面上指定的文件匹配,所以如何解决此错误?
The requirements in the composr.json
file match those specified on the packagist page so how can I resolve this error?
推荐答案
正确的格式应为:
composer require "dirkgroenen/Pinterest-API-PHP:0.2.11"
或者,您也可以将其添加到 composer.json
:
Or alternatively, you can add it to your composer.json
:
"dirkgroenen/Pinterest-API-PHP" : "0.2.11",
然后执行合成器安装
这篇关于您的要求无法解决为pinterest API的一组可安装软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!