“https://packagist.org/packages.json” file could not be downloaded

后端 未结 5 1141
南方客
南方客 2020-12-20 13:08

I am trying to install a new laravel instance with the following command:

composer create-project laravel/larevel authii --prefer-dist

But

5条回答
  •  心在旅途
    2020-12-20 13:45

    The fix for me was found here: https://getcomposer.org/doc/articles/troubleshooting.md#operation-timed-out-ipv6-issues-.

    I had to disable IPv6 on my network interfaces. After disabling that, composer worked fine.

提交回复
热议问题