是否有人在使用Ubuntu服务器上的composer的Laravel 5项目中安装了Microsoft Azure Client Library?
当我尝试使用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.
有谁知道我做错了什么? 谢谢你的帮助。
答案 0 :(得分:1)
通过将secure-http设置为false
来修改作曲家的配置,解决了这个问题"config": {
"secure-http": "false"
}