有没有办法永久关闭Composer的ANSI? [英] Is there a way to permanently turn off ANSI for Composer?

查看:81
本文介绍了有没有办法永久关闭Composer的ANSI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在外壳中运行Composer时,它将使用深黄色的背景色渲染所有文本,因此几乎无法阅读。

When I run Composer in my shell, it renders all of the text with a background color of dark yellow, so that it is almost impossible to read.

有一个选项可以在我运行的每个命令中提供-no-ansi 参数,但这似乎确实是像痛苦有没有办法关闭默认设置?甚至将颜色更改为更易读的颜色?

There's an option to supply the --no-ansi argument with every command I run, but this really seems like a pain. Is there a way to turn it off of the default? Or even change the color to something more readable?

推荐答案

所以事实证明这是因为我使用的是旧字体版本的Composer。当我尝试运行安装程序时,我得到了

So it turns out that it was because I was using an "old" version of Composer. When I tried to run an install, I was getting the

Warning: This development build of composer is over 30 days old. It is
recommended to update it by running "/usr/local/bin/composer self-update"
to get the latest version.

我运行了自我更新,看到过去30天内甚至还没有新版本,但是现在它以可读的配色方案呈现。

I ran self-update, and it saw that there hadn't even been a new version in the last 30 days, but it is now rendering in a readable color scheme.

这篇关于有没有办法永久关闭Composer的ANSI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆