Composer更新/安装laravel遇到curl错误28
P粉536909186
P粉536909186 2023-11-05 19:53:02
0
1
778

我搜索了几个网站,stackoverflow中的几个主题尝试了几种方法来解决

  1. 重新安装了作曲家
  2. 重新安装了xampp
  3. 将 IPv6 更改为 IPv4 -> 暂时解决了
  4. 在另一台电脑上尝试过 -> 同一网络
  5. 我把我的 github 令牌保存在composer.json 中,然后又出现了一个错误
  6. 按照建议使用 V PN
  7. 我在 github 中克隆了 laravel,但是当我需要更新其作曲家“autoload”时,我仍然在随机主题上遇到相同的错误,有时是 laravel/symfony 等。
  8. 我尝试根据 Fileinfo 在 Xampp v3.2.1 中无法工作来更改 php.ini [重复]:首先没有“;extension=php_fileinfo.dll”,而是我发现 extension=fileinfo 本身没有被注释
  9. 为了超时,我将extendion_max从120更改为360 //我的内存是16
  10. 我在一个在线 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

(我可以对我所做的每一步进行截图)

所有限制都解决了我的问题 但我认为丢失的答案与代理有关 (31/10/2022)

P粉536909186
P粉536909186

热门教程
더>
最新下载
더>
网站特效
网站源码
网站素材
프론트엔드 템플릿
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!