php – Composer依赖错误获取microsoft / windowsazure包

前端之家收集整理的这篇文章主要介绍了php – Composer依赖错误获取microsoft / windowsazure包前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我很难通过Composer获取 Windows Azure的 PHP客户端库包.这个问题似乎与包有Pear依赖关系有关.

composer.json文件内容

{
      "require": {
          "microsoft/windowsazure": "dev-dev"
      },"repositories": [
          {
              "type": "pear","url": "http://pear.PHP.net"
          }
      ]
  }

运行“composer update”后的输出如下:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for microsoft/windowsazure dev-dev -> satisfiable by microsoft/windowsazure[dev-dev].
- microsoft/windowsazure dev-dev requires pear-pear/http_request2 * -> no matching package found.

我过去从未遇到任何困难.我可以根据要求提供更详细的日志.

我记得有些问题是由于梨替换工作方式的变化而引起的.

这个问题需要在上游修复,以使pear-pear / *替换为pear-pear.PHP.net/*,但作为root composer.json中的一种解决方法,您可以明确要求依赖项,以便让它们被发现求解.

{
    "require": {
        "microsoft/windowsazure": "dev-dev","pear-pear.PHP.net/http_request2": "*","pear-pear.PHP.net/mail_mime": "*","pear-pear.PHP.net/mail_mimedecode": "*"
    },"repositories": [
        {
            "type": "pear","url": "http://pear.PHP.net"
        }
    ]
}

上面的composer.json应该适用于作曲家的最新版本和未来版本.使用Composer版本测试aa9c257f0efd1a54c93ba95282821a497bc15d75 2014-03-09 15:09:15

原文链接:https://www.f2er.com/php/134383.html

猜你在找的PHP相关文章