当前位置:Gxlcms > PHP教程 > composer中国源更新出错

composer中国源更新出错

时间:2021-07-01 10:21:17 帮助过:22人阅读

今天在服务器上运行

  1. composer update

给我返回的提示是

  1. > php artisan clear-compiled
  2. > php artisan optimize
  3. Generating optimized class loader
  4. > php artisan ide-helper:generate
  5. A new helper file was written to _ide_helper.php
  6. Loading composer repositories with package information
  7. [Composer\Downloader\TransportException]
  8. The "https://packagist.phpcomposer.com/packages.json" file could not be downloaded: Peer certificate CN=`*.b0.upaiyun.com' did not
  9. match expected CN=`packagist.phpcomposer.com'
  10. Failed to enable crypto
  11. failed to open stream: operation failed

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

看如下操作:

  1. c:\upupw\htdocs\laravel>composer update
  2. Loading composer repositories with package information
  3. Updating dependencies (including require-dev)
  4. - Removing illuminate/support (v5.2.37)
  5. - Removing illuminate/contracts (v5.2.37)
  6. - Removing illuminate/console (v5.2.37)
  7. - Removing illuminate/cache (v5.2.37)
  8. - Removing illuminate/http (v5.2.37)
  9. - Removing illuminate/session (v5.2.37)
  10. - Removing illuminate/config (v5.2.37)
  11. - Removing illuminate/filesystem (v5.2.37)
  12. - Removing illuminate/translation (v5.2.37)
  13. - Removing illuminate/pipeline (v5.2.37)
  14. - Removing illuminate/container (v5.2.37)
  15. - Removing illuminate/routing (v5.2.37)
  16. - Removing illuminate/events (v5.2.37)
  17. - Removing illuminate/database (v5.2.37)
  18. Writing lock file
  19. Generating autoload files
  20. > Illuminate\Foundation\ComposerScripts::postUpdate
  21. > php artisan optimize
  22. Generating optimized class loader

人气教程排行