gpt4 book ai didi

php - 下载Laravel时Composer HTTP 400错误的请求

转载 作者:行者123 更新时间:2023-12-03 23:18:49 25 4
gpt4 key购买 nike

我收到一个通过HTTP连接的400错误请求的问题,看来该软件包只想通过http安装。我尝试了composer.json中的替代,作为其他人尝试的替代方法来强制使用https-但这似乎不起作用。我不在防火墙后面。 Mac OS 10.10.3

问题 :

composer diagnose
Checking composer.json: FAIL
the property name is required
the property description is required
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: FAIL
[Composer\Downloader\TransportException] The "http://packagist.org/packages.json" file could not be downloaded (HTTP/1.1 400 Bad Request)
Checking https connectivity to packagist: OK
Checking github.com rate limit: OK
Checking disk free space: OK
Checking composer version: OK

[Composer\Downloader\TransportException]

The "http://packagist.org/p/provider-2013$c2596c5d04e7701561420666ba120ede9429a69c75b732a5a01b18ebb3d64e53.json" file could not be downloaded (HTTP/1.1 400 Bad Request)


Composer.json

{
"repositories": [
{ "packagist": false }
,

{
"type": "composer",
"url": "https://packagist.org"
}
]
}


Composer版本1.0-dev(92faf1c7a83a73794fb914a990be435e1df373ca)
2015-07-14 12:37:15

最佳答案

对我来说,退出Forticlient(防病毒/网络安全应用程序)消除了400错误的请求错误,并允许我通过composer下载laravel。

也许您有防病毒软件或类似的干扰软件。

我在Mac OS X 10.11上

关于php - 下载Laravel时Composer HTTP 400错误的请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31467219/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com