首頁 > 後端開發 > php教程 > composer 中國源更新出錯

composer 中國源更新出錯

PHP中文网
發布: 2023-03-01 06:04:01
原創
2830 人瀏覽過

今天在伺服器上運行

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
登入後複製
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
作者最新文章
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板