我搜索了几个网站,stackoverflow中的几个主题尝试了几种方法来解决它
- 重新安装composer
- 已重新安装xampp
- 将IPv6更改为IPv4->暂时解决了它
- 在另一台电脑上尝试过->同一网络
- 我获取了我的github令牌,并将其保存在composer.json中,得到了另一个错误
- 按照建议使用vpn
- 我在github中克隆了laravel,但当我需要更新它的作曲家时"自动加载";,我在随机受试者身上仍然会遇到同样的错误,有时是laravel/symfony等等
- 我尝试根据Fileinfo更改php.ini,但在Xampp v3.2.1中不起作用[重复]:首先;;extension=php_fileinfo.dll"相反,我发现extension=fileinfo,它本身没有被评论
- 对于超时,我将extensionmax从120更改为360//我的ram为16
- 我在一个在线php训练营里,没有人有同样的错误,当我寻求帮助时,也没有人不能帮助我
我准备提供更多信息,也许我尝试了一种错误的方式欣赏
- Downloading laravel/sail (v1.16.2)
Failed to download symfony/http-foundation from dist: curl error 28 while downloading https://api.github.com/repos/symfony/http-foundation/zipball/90f5d9726942db69490fe467a3acb5e7154fd555: Operation timed out after 10008 milliseconds with 0 out of 0 bytes received
Now trying to download from source
- Syncing symfony/http-foundation (v6.1.5) into cache
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
When working with _public_ GitHub repositories only, head to https://github.com/settings/tokens/new?scopes=&description=Composer+on+Mom+2022-10-06+2353 to retrieve a token.
This token will have read-only permission for public information only.
When you need to access _private_ GitHub repositories as well, go to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+Mom+2022-10-06+2353
Note that such tokens have broad read/write permissions on your behalf, even if not needed by Composer.
Tokens will be stored in plain text in "C:/Users/whowe/AppData/Roaming/Composer/auth.json" for future use by Composer.
For additional information, check https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth
Token (hidden):
新尝试:
根据NicoHaase先生的建议,我审查了IPv6部分结果如下:
Downloading laravel/laravel (v9.3.8)
Failed to download laravel/laravel from dist: curl error 28 while downloading api.github.com/repos/laravel/laravel/zipball/…:
Operation timed out after 10005 milliseconds with 0 out of 0 bytes
received Now trying to download from source
(我可以截图我做的每一步(
所有的限制都解除了我自己努力解决的问题但我认为丢失的答案是关于代理(2022年10月31日(
使用代理!如果您在linux中:
导出http_proxy='your_proxy'
exporthttps_proxy='your_proxy'
然后使用composer命令如果使用鞋垫5:
export http_proxy=socks5://ip:port https_proxy=socks5://ip:port
然后使用composer命令。我想你和我是一样是伊朗人