Answer the question
In order to leave comments, you need to log in
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>]
[email protected]:~/.composer# cat composer.json
{
"require": {
"fxp/composer-asset-plugin": "~1.0.3"
},
"repositories": [
{
"packagist": false
},
{
"type": "composer",
"url": "https://packagist.org/"
}
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question