S
S
Sergey2016-01-13 16:48:49
Yii
Sergey, 2016-01-13 16:48:49

Composer pulls from the packagist via HTTP, although HTTPS is explicitly specified in the config?

Installed composer. I try to put yii2-we get an error.
That is, I prescribe a turnip with https in composter.json, but he still tries to load via http.

composer create-project --prefer-dist yiisoft/yii2-app-advanced yii2-app


  [Composer\Downloader\TransportException]
  The "http://packagist.org/p/provider-2013%24e5f8127bd37cccb779a4f23f8eef0ef9823564e51570204776e43c3dd83e1e37.json" file could not be downloaded: failed
  to open stream: HTTP request failed!


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

composer.json:
[email protected]:~/.composer# cat composer.json
{
    "require": {
        "fxp/composer-asset-plugin": "~1.0.3"
    },
"repositories": [
    {
        "packagist": false
    },
    {
        "type": "composer",
        "url": "https://packagist.org/"
    }
]
}

There was a similar error, but after installing openssl it became normal to work. And now again. I don't know what to do anymore

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-01-18
@r3l0c

composer config --global repo.packagist composer https://packagist.org/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question