我得到了一个400坏请求连接在http上的问题,它似乎包只想要安装通过http。我尝试过在composer.json中进行覆盖,其他人也尝试过这样做,以强制使用https --但这似乎不起作用。我没躲在防火墙后面。Mac 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"
}
]
}作曲家版本1.0-dev (92faf1c7a83a73794fb914a990be435e1df373ca) 2015-07-14 12:37:15
发布于 2020-02-17 21:11:02
它看起来像是伊朗wifi internet i改为iran我的手机,而且它也安装了。
https://stackoverflow.com/questions/39354884
复制相似问题