gpt4 book ai didi

laravel - "https://packagist.org/packages.json"文件无法下载: failed to open stream: Operation timed out

转载 作者:行者123 更新时间:2023-12-03 16:30:14 27 4
gpt4 key购买 nike

今天早上,我执行了这个命令

composer create-project laravel/laravel laravel-4.2 4.2 --prefer-dist

我一直在

enter image description here

The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream: Operation timed out
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info



有人知道如何避免这种情况吗?

最佳答案

试试这个解决方案对我有用!

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

并再次运行 composer:update。如果不是,则为 run composer self-update
我得到了 here的答案,它的作用类似于伏都教...

关于laravel - "https://packagist.org/packages.json"文件无法下载: failed to open stream: Operation timed out,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52446329/

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