composer China source update error

PHP中文网
Release: 2023-03-01 06:04:01
Original
2812 people have browsed it

When I ran

composer update
Copy after login

on the server today, the prompt returned to me was

> php artisan clear-compiled
> php artisan optimize
Generating optimized class loader
> php artisan ide-helper:generate
A new helper file was written to _ide_helper.php
Loading composer repositories with package information

                                                                                                                                      
  [Composer\Downloader\TransportException]                                                                                            
  The "https://packagist.phpcomposer.com/packages.json" file could not be downloaded: Peer certificate CN=`*.b0.upaiyun.com' did not  
   match expected CN=`packagist.phpcomposer.com'                                                                                      
  Failed to enable crypto                                                                                                             
  failed to open stream: operation failed
Copy after login

I don’t know the reason for this? Is there a problem with the image or something with my local certificate?

See the following steps:

c:\upupw\htdocs\laravel>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Removing illuminate/support (v5.2.37)
  - Removing illuminate/contracts (v5.2.37)
  - Removing illuminate/console (v5.2.37)
  - Removing illuminate/cache (v5.2.37)
  - Removing illuminate/http (v5.2.37)
  - Removing illuminate/session (v5.2.37)
  - Removing illuminate/config (v5.2.37)
  - Removing illuminate/filesystem (v5.2.37)
  - Removing illuminate/translation (v5.2.37)
  - Removing illuminate/pipeline (v5.2.37)
  - Removing illuminate/container (v5.2.37)
  - Removing illuminate/routing (v5.2.37)
  - Removing illuminate/events (v5.2.37)
  - Removing illuminate/database (v5.2.37)
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
Generating optimized class loader
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template