Composer Install or update error problem resolution SolidWorks composer Laravel Avid Media composer

Source: Internet
Author: User
Tags autoload composer install
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.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.