question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No colors in gulp output

See original GitHub issue

In 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:closed
  • Created 10 years ago
  • Reactions:1
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
guillaume86commented, Dec 11, 2015

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

4reactions
rs3dcommented, Dec 15, 2015

@guillaume86 Thanks a lot, Setting FORCE_COLOR in my environment helped me to workaround the win10 problem.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found