Failed to decode Response:zlib_decode (): Data error
Retrying with degraded mode, check Https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
Composer mirroring is not supported by HTTPS
Open a Command line window (Windows user) or console (Linux, MAC user), enter the root directory of your project (that is, the directory where the Composer.json file is located), and execute the following command:
Composer Config Repo.packagist composer https://packagist.phpcomposer.com
The above command will automatically add the mirrored configuration information at the end of the Composer.json file in the current project (you can also manually add it yourself):
"Repositories": {
"Packagist": {
"Type": "Composer",
"url": "Https://packagist.phpcomposer.com"
}
}
Take the Composer.json configuration file for the Laravel project as an example, following the above command (note the last few lines):
{
"Name": "Laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["Framework", "Laravel"],
"License": "MIT",
' Type ': ' Project ',
"Require": {
"PHP": ">=5.5.9",
"Laravel/framework": "5.2.*"
},
"Require-dev": {
"Fzaninotto/faker": "~1.4",
"Mockery/mockery": "0.9.*",
"Phpunit/phpunit": "~4.0",
"Symfony/css-selector": "2.8."|3.0.“,
"Symfony/dom-crawler": "2.8."|3.0.”
},
"AutoLoad": {
"Classmap": [
"Database"
],
"Psr-4": {
"App\": "app/"
}
},
"Autoload-dev": {
"Classmap": [
"Tests/testcase.php"
]
},
"Scripts": {
"Post-root-package-install": [
"Php-r \" Copy ('. Env.example ', '. env '); \ ""
],
"Post-create-project-cmd": [
"PHP Artisan key:generate"
],
"Post-install-cmd": [
"PHP Artisan clear-compiled",
"PHP Artisan Optimize"
],
"Pre-update-cmd": [
"PHP Artisan clear-compiled"
],
"Post-update-cmd": [
"PHP Artisan Optimize"
]
},
"Config": {
"Preferred-install": "Dist"
},
"Repositories": {
"Packagist": {
"Type": "Composer",
"url": "Https://packagist.phpcomposer.com"
}
}
}
OK, everything is done! Try composer install to experience the speed of flying!
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the composer install or update error problem resolution, including the composer aspects of the content, I hope that the PHP tutorial interested in a friend helpful.