Rumah  >  Artikel  >  pembangunan bahagian belakang  >  composer 中国源更新出错

composer 中国源更新出错

PHP中文网
PHP中文网asal
2017-03-30 10:18:122814semak imbas

今天在服务器上运行

composer update

给我返回的提示是

> 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

不知道这是什么原因?是镜像有问题还是我本地的证书什么的有问题

看如下操作:

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
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn