【问题标题】:Laravel: Install Microsoft Azure Client Library with composerLaravel:使用 composer 安装 Microsoft Azure 客户端库
【发布时间】:2016-03-17 09:56:03
【问题描述】:

是否有人在 Ubuntu 服务器上使用 composer 将 Microsoft Azure 客户端库安装到 Laravel 5 项目中?

当我尝试使用 Composer 安装时(命令:composer require microsoft/windowsazure),我收到了下一个错误:

Using version ^0.4.1 for microsoft/windowsazure
./composer.json has been updated
> php artisan clear-compiled
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 microsoft/windowsazure ^0.4.1 -> satisfiable by microsoft/windowsazure[v0.4.1].
- microsoft/windowsazure v0.4.1 requires pear-pear2.php.net/http_request2 * -> no matching package found.

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

有谁知道我做错了什么? 感谢您的帮助。

【问题讨论】:

    标签: php azure laravel-5 composer-php


    【解决方案1】:

    通过修改composer的配置,将secure-http设置为false解决了这个问题

    "config": {
        "secure-http": "false"
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-09
      • 2016-09-25
      • 2012-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多