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

后端 未结 5 1142
南方客
南方客 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:37

    Linux users can run this command to resolve this issue:

    sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"
    

    More Information

提交回复
热议问题