LoginSignup
3
2

More than 5 years have passed since last update.

composerのsecure-httpの設定を変更する

Posted at

composerを利用している時に以下のようなエラーが出ました。

Your configuration does not allow connection to http://~...

現在の最新のcomposerではsecure-httpの設定はデフォルトでtrueになっていて、
取ってくるパッケージがhttpに置かれているとDLに失敗します。

composer.jsonに下記のconfigを追記してあげることで、
secure-httpfalseにしてあげることができます。

composer.json
{
    "require": {

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

これでエラーが出なくなりました。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2