Getting error while installing laravel installer in window 10

后端 未结 5 929
面向向阳花
面向向阳花 2021-02-08 08:27

I am using Windows 10 and composer is installed. When I try to install laravel installer globally using this command:

composer global r         


        
5条回答
  •  春和景丽
    2021-02-08 09:27

    I believe you are facing the same issue as this and this. Composer recommends the following:

    We recommend you fix your IPv6 setup. If that is not possible, you can try the following workarounds:

    sadly, for the Windows workaround it says that if your setup cannot be fixed or if that didn't solve the issue then you should outright disable IPv6 which is a common answer and is also suggested here (however the video has been deleted so I've made this post to have a reliable answer).

    (I've purposely aligned the windows as such so you can see the steps to the screen)

    • Open Control Panel
    • Navigate to Network and Internet
    • Click on Network and Sharing Centre
    • On the left hand side of the window click on Change adapter settings
    • Find your adapter and open the properties by right clicking on it
    • Find Internet Protocol Version 6 (TCP/IPv6) and uncheck it
    • Click OK

    Edit #1

    What is suggested here is:

    Install a Windows level VPN or proxy switcher that acts as the default route if you need to change your IP (effectively). Try CyberGhost

    and that seemed to solve the issue for the OP.

提交回复
热议问题