最近用drupal做开发,想用一下console

按照官方提示的地址:https://hechoendrupal.gitbooks.io/drupal-console/content/zh_hans/getting/installer.html

安装完成后,到相应的网站目录执行drupal init 时提示要用以下两条命令执行composer安装

[ERROR] Drupal Console is not installed at:                                    
                                                                                
 You must execute the following composer commands:

composer require drupal/console:~1.0 --prefer-dist --optimize-autoloader       
composer update drupal/console --with-dependencies

sudo第一条后,出现以下错误

Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
                                                                             
  [Composer\Downloader\TransportException]                                     
  Your configuration does not allow connection to http://packagist.org. See h  
  ttps://getcomposer.org/doc/06-config.md#secure-http for details.

百度找了好多,都是说用composer update就行!结果都扯蛋没用!

后来找到了解决方案:

sudo composer config -g repo.packagist composer https://packagist.phpcomposer.com

来源:http://blog.csdn.net/worldzhy/article/details/54927806

问题主要原因:是composer的源没有相应的zlib_docode,更新一个composer源就好!

更多内容,可见个人博客:blog.yroot.win

使用Drupal Console,出现Failed to decode response: zlib_decode(): data error Retrying with degraded mode相关推荐

  1. Failed to load response dataNo data found for resource with given identifier

    文章目录 一.遇到问题 二.原因分析 2.1.form表单action请求打断了ajax请求 2.2.映像图解释 三.解决方法 3.1.方式一:ajax改为同步 3.2.方式二:分离ajax和form ...

  2. 接口返回 Failed to load response data 是怎么回事

    昨天有一个情景,当一个接口返回成功后调取第二个接口,结果第二个接口返回Failed to load response data,如下 proxy.$api.aaa(params).then(res = ...

  3. ELK系统之logstash问题:retrying failed action with response code: 429

    版权声明:本文为博主原创文章,如需转载,请标明出处. https://blog.csdn.net/alan_liuyue/article/details/78926015 问题来源 logstash在 ...

  4. composer Failed to decode zlib stream

    dockerFile 中安装composer.... RUN curl -s -f -L -o /tmp/installer.php https://raw.githubusercontent.com ...

  5. Chrome 开发者工具无法显示服务器正常返回的 HTTP 请求 - Failed to load response data

    今天做开发时遇到一个问题,Chrome 开发者工具 network 标签里,虽然一个 HTTP 请求已经成功从服务器端返回,但是 Chrome 开发者工具里,仍然显示 Failed to load r ...

  6. springboot : Failed to decode downloaded font 和 OTS parsing error

    大家好,我是烤鸭: 采坑实录,看了很多人跟我有类似问题,但是都没解决我的问题: Failed to decode downloaded font 和 OTS parsing error: 尝试了把wo ...

  7. Vue ui/vue create创建项目报错:Failed to get response from https://registry.npmjs.org/vue-cli-version-ma

    报错:Failed to get response from https://registry.npmjs.org/vue-cli-version-marker 找到C:\Users\Administ ...

  8. Springboot项目引入Bootstrap后,图标不能正常显示,报:Failed to decode downloaded font

    springboot项目引入bootstrap后,报:Failed to decode downloaded font,图标不能正常显示 在pom文件中,添加如下配置 <plugin>&l ...

  9. 已解决,软件V2报错 failed to read response header > websocket: close 1005 (no status)问题

    软件V who-you-know 本帖仅供学习参考,请勿讨论软件和V问题,发现会删除并举报,遵纪守法人人有责,谢谢. error : 23:37:05 tcp:127.0.0.1:55901 acce ...

  10. 浏览器返回数据量过大报‘failed to load response data: Request content was evicted from inspector cache’

    主要参考:failed to load response data request content was evicted from inspector cache 现象: 解决方法: copy as ...

最新文章

  1. GitHub标星1.2w+,Chrome最天秀的插件都在这里
  2. linux安装tune2fs工具,linux tune2fs简解(每日一令之五)
  3. jde多目标_华科开源多目标跟踪(MOT)实时新SOTA:FairMOT
  4. 正方体最快最简单画_素描新手入门第一幅画可不只是“正方体”
  5. 运算器为计算机提供了计算与逻辑,【单选题】运算器为计算机提供了计算与逻辑功能,因此称它为()....
  6. 2018年高二计算机试题,2018年上学期高二信息技术期末考试试题.pdf
  7. python报数组越界_【问题汇总】列表数组越界的问题
  8. Eclipse!!!!!!!!!!!!!!!!!!
  9. Java编程思想笔记(内部类)
  10. 双盘转子动力学仿真c语言程序,[转载]基于ANSYS经典界面的双转子电机的转子动力学仿真...
  11. 计算机发展史上一些重要的著作
  12. 机器学习基础(林軒田)笔记之七
  13. 微商城搭建教程,手把手教你开通自己的线上/定制微商城!
  14. 出走海报,立体感搞出来
  15. 删除无效的“设备和驱动器”
  16. latex 参考文献显示问号_终于用回vscode写LaTeX了
  17. 开发一个电商网站大概多少钱
  18. C# 串口测试 ASCII
  19. 为什么网上工商银行安装了U盾不能上网站了?
  20. [探测与扫描]仿生学-鹰眼的威力

热门文章

  1. Java poi 导出Excel并合并单元格 史上最强
  2. 向Spring大佬低头--大量源码流出解析
  3. 接力队选拔matlab,这是我见过的操作最好的接力队之一= =
  4. DQN:Playing Atari with Deep Reinfocement Learning
  5. MFI认证与PPID
  6. C1驾考成都胜利考场科目二经验
  7. excel输入公式显示公式_显示Excel公式而不是结果
  8. 简单介绍一下HBase、Cassandra、Voldemort、Redis、VoltDB、MySQL
  9. 学与思的关系?(中国文化史)
  10. 《MobileNetV2: Inverted Residuals and Linear Bottlenecks》