configuration does not allow connection to http://packagist.org/packages.json

前端 未结 5 1928
陌清茗
陌清茗 2020-12-19 21:50

I am trying to install laravel in my computer.

I am refering to turorails point laravel installation tutorial.

After installing composer trying to create n

5条回答
  •  囚心锁ツ
    2020-12-19 22:14

    Step 1: Set disable-tls = true
    php composer.phar config -g disable-tls true
    Step 2: Set secure-http = false
    php composer.phar config -g secure-http false
    

    The reason is: the url of the installation module is not https, reference manual:https://getcomposer.org/doc/06-config.md#disable-tls

提交回复
热议问题