当前位置: 首页 > news >正文

php composer 报错

引用文章:

Composer设置国内镜像_composer 国内源-CSDN博客

php composer.phar require --prefer-dist yiidoc/yii2-redactor "*"

A connection timeout was encountered. If you intend to run Composer without connecting to the internet, run the command again prefixed with COMPOSER_DISABLE_NETWORK=1 to make Composer run in offline mode.
https://repo.packagist.org could not be fully loaded (curl error 28 while downloading https://repo.packagist.org/p2/codeception/lib-innerbrowser.json: Operation timed out after 10000 milliseconds with 0 out of 0 bytes received), package information was loaded from the local cache and may be out of date

Installation failed, reverting ./composer.json to its original content.

In CurlDownloader.php line 371:
                                                                                                                                                                                
  curl error 28 while downloading https://repo.packagist.org/p2/codeception/lib-innerbrowser.json: Operation timed out after 10000 milliseconds with 0 out of 0 bytes received  
 

解决方案:

composer config -g -l

设置阿里云镜像

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

http://www.lryc.cn/news/383538.html

相关文章:

  • 数据安全如何防护?迅软加密软件保护企业数据资产
  • Android 11 ,默认授予预置应用/APK 需要的权限,解决permission denied for window type 2003 问题。
  • RabbitMQ(消息队列)
  • LeetCode-数组/回溯-No40组合总和II
  • 直接调用 Java 线程的 run() 方法会发生什么?
  • 计算机毕业设计Thinkphp/Laravel学生考勤管理系统zyoqy
  • 3浏览器安全
  • 昇思25天学习打卡Day01
  • Python-爬虫 下载天涯论坛帖子
  • 创建github个人博客
  • 【五子棋game】
  • 从入门到精通:使用Python的Watchdog库监控文件系统的全面指南
  • Linux 进程管理指令
  • Java OA系统通知公告模块
  • 简约的服务器监控工具Ward
  • 新能源发电乙级资质所需办理标准
  • Elasticsearch:使用 Llamaindex 的 RAG 与 Elastic 和 Llama3
  • AcWing算法基础课笔记——高斯消元
  • 【JavaScript脚本宇宙】图形魔术:探索领先的图像处理库及其独特功能
  • Nemotron-4
  • 【神经网络】神经元的基本结构和训练过程
  • 第28课 绘制原理图——绘制导线
  • NLP 相关知识
  • Java中的设计模式:实战案例分享
  • 并发编程理论基础——合适的线程数量和安全的局部变量(十)
  • Python使用抽象工厂模式和策略模式的组合实现生成指定长度的随机数
  • python-17-零基础自学python-
  • Web应用和Tomcat的集成鉴权1-BasicAuthentication
  • 解决Linux下Java应用因内存不足而崩溃的问题
  • ardupilot开发 --- 视觉伺服 篇