Composer for windows could not be downloaded SSL: Handshake timed out

前端 未结 1 890
被撕碎了的回忆
被撕碎了的回忆 2021-01-26 22:54

This is what I get when I try to install composer for windows

The \"https://getcomposer.org/versions\" file could not be downloaded: SSL: Handshake time

相关标签:
1条回答
  • 2021-01-26 23:38

    Step 1

    Run below command in terminal

    composer config --global disable-tls true
    composer config --global secure-http false
    

    Step 2

    Add "secure-http": false in composer.json file

    "config": {
        "secure-http": false
    },
    

    Step 3

    Run below command in terminal

    composer clear-cache
    composer diagnose
    
    0 讨论(0)
提交回复
热议问题