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

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

问题描述

当我在 shell 中运行 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.

我运行 self-update,它发现在过去 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天全站免登陆