php - composer 中国源更新出错

 手机用户2502880157 发布于 2022-11-15 16:52

今天在服务器上运行

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 

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

1 个回答
  • RP问题。。。

    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
    2022-11-15 18:22 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有