• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

composer 中国源更新出错

php 搞代码 3年前 (2022-01-22) 20次浏览 已收录 0个评论

今天在服务器上运行

composer update

给我返回的提示是

> php artisan clear-compiled> php artisan optimizeGenerating optimized class loader> php artisan ide-helper:generateA new helper file was written to _ide_helper.phpLoading 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 updateLoading composer repositories with package informationUpdating 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 fileGenerating autoload fi<p>4本文¥来源gao!%daima.com搞$代*!码$网9</p><pre>搞代gaodaima码

les> Illuminate\Foundation\ComposerScripts::postUpdate> php artisan optimizeGenerating optimized class loader


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:composer 中国源更新出错
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址