composer 更新到1.6.2.0版本 失败

文档问题 · leenin · 于 5年前 发布 · 2154 次阅读

今天打算跟新到1.6.2.0,使用composer安装总是: Loading composer repositories with package information Updating dependencies (including require-dev) Killed

设置了swap :

          total        used        free      shared  buff/cache   available

Mem: 487 127 221 6 139 324 Swap: 1999 95 1904

设置了国内镜像: [repositories.packagist.org.type] composer [repositories.packagist.org.url] https://packagist.phpcomposer.com

安装过程中清理了 缓存。

但是一直是 Killed 。求大婶 指教!!!

本文由 leenin 创作,采用 知识共享署名 3.0 中国大陆许可协议 进行许可。 可自由转载、引用,但需署名作者且注明文章出处。

共收到 5 条回复
Fecmall#15年前 0 个赞

可能是内存不足,内存不够的时候会发生kill

leenin#25年前 0 个赞

问题文字编辑格式不太好, 后面有swap的信息,Swap: 1999 95 1904。设置这样swap也不行么? 小白一个,对linux 不太熟悉。

怎么让update 时候,显示安装 过程log 如下列表: [root@localhost fecshop]# composer update Do not run Composer as root/super user! See https://getcomposer.org/root for details The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option Loading composer repositories with packagUpdating dependencies (including require-dev)
Package operations: 48 installs, 0 updates, 0 removals

  • Installing yiisoft/yii2-composer (2.0.5): Downloading (100%)
  • Installing hightman/xunsearch (1.4.10): Downloading (100%)
  • Installing tubalmartin/cssmin (v4.1.0): Downloading (100%)
  • Installing pimple/pimple (v3.0.2): Downloading (100%)
  • Installing psr/container (1.0.0): Downloading (100%)
  • Installing container-interop/container-interop (1.2.0): Downloading (100%)
  • Installing mrclay/props-dic (2.2.0): Downloading (100%)
  • Installing mrclay/jsmin-php (2.3.2): Downloading (100%)
  • Installing psr/log (1.0.2): Downloading (100%)
  • Installing monolog/monolog (1.22.1): Downloading (100%)
  • Installing intervention/httpauth (2.0.2): Downloading (100%)

自己的安装一直是: Loading composer repositories with package information Updating dependencies (including require-dev) ....

不显示update 列表

Fecmall#35年前 0 个赞

1.markdown编辑器,语法参看:http://www.fecshop.com/markdown , md格式程序员必备

2.可能是网络问题,参看:

https://segmentfault.com/q/1010000002458926

https://www.jianshu.com/p/45815a94f576

leenin#45年前 0 个赞

composer 的安装(update)log 怎么显示出来啊?没查到相关的资料

Fecmall#55年前 0 个赞

默认就可以显示出来

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics