You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, for v18 (still under LTS at the time of this writing), NO_COLOR only disables color for output outside of the REPL, not within it. NODE_DISABLE_COLORS disables colorized output both outside of the REPL and within it.
Additional information
The issue seems to have been corrected only for Node.js v19.0.0+
The text was updated successfully, but these errors were encountered:
Looks like this was introduced into v18.x by #48034 (backported to v18.x by #48684). The regression was fixed in later release lines by #51568.
@nodejs/lts Thoughts? Node.js 18 is in maintenance -- I'd normally be wary of changing anything output related but this appears to be a regression (in 18.17.0) and #51568 looks like a straightforward change that should only affect the REPL.
Version
v18.20.5
Platform
Subsystem
No response
What steps will reproduce the bug?
node
executable.NO_COLOR=1 ./node
[1]
[ENTER]
and verify the result prints the1
in color.How often does it reproduce? Is there a required condition?
The issue is consistent 100% of the time.
What is the expected behavior? Why is that the expected behavior?
The expected behavior is that
NO_COLOR
should be an alias forNODE_DISABLE_COLORS
because that's what's stated in the documentation.What do you see instead?
Currently, for v18 (still under LTS at the time of this writing),
NO_COLOR
only disables color for output outside of the REPL, not within it.NODE_DISABLE_COLORS
disables colorized output both outside of the REPL and within it.Additional information
The issue seems to have been corrected only for Node.js v19.0.0+
The text was updated successfully, but these errors were encountered: