No colors in gulp output
See original GitHub issueIn a custom task, chalk seems enabled.
console.log(gutil.colors.enabled);
console.log(gutil.colors.supportsColor);
But core gulp output will not be coloured, like this one.
I still can force with gulp --color
argument, but this is not very friendly.
Am I missing something there?
Issue Analytics
- State:
- Created 10 years ago
- Reactions:1
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Gulp shows options for --color and --no-color, but errors when ...
I am trying to get it to run in WebStore 2016.1, but I am getting an error in both trying to run the...
Read more >Using console colors with Node.js - LogRocket Blog
Use Chalk, Colors.js, and Color-CLI to implement console colors in Node.js apps and make your apps' outputs more readable.
Read more >Chalk - npm
Expressive API; Highly performant; No dependencies; Ability to nest styles; 256/Truecolor color support; Auto-detects color support ...
Read more >Gulp Tasks - Robo.li
Run · noColor() adds --no-color option to gulp · color() adds --color option to gulp · simple() adds --tasks-simple option to gulp ·...
Read more >Gulp: tasks can't be listed if the std output contains text in square ...
js --no-color --gulpfile /Users/d062787/projects/pdms-fdn/gulpfile.js --tasks-json [16:38:58] buildTargetKey is: local [ { "label": "help", "type": "task", " ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After investigations, it boils down to the “supports-colors” package checking “process.stdout.isTTY” which is false under minTTY (on windows 10, not sure about other windows versions) but true under cmd.exe, you can workaround this by setting a FORCE_COLOR environment variable.
The root issue seems to be discussed in here: https://github.com/nodejs/node/issues/3006 and perhaps here https://github.com/mintty/mintty/issues/56
@guillaume86 Thanks a lot, Setting
FORCE_COLOR
in my environment helped me to workaround the win10 problem.