It's not working on my mac (10.11.5)
See original GitHub issueThis is my code:
const chalk = require('chalk');
console.log(chalk.red('TOTOTOTOT'));
console.log(chalk.blue('Hello world!'));
It just prints white text in iTerm and Terminal
package.json
"chalk": "^1.1.3",
What am I doing wrong here?
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (8 by maintainers)
Top Results From Across the Web
Mac os 10.11.5 installation error - "veri… - Apple Community
I'm quoting below a part of the install.log file that seems to be relevant but from which I cannot understand what is going...
Read more >16 Common OS X El Capitan Problems & How to Fix Them
We show you how to fix the most common OS X El Capitan problems on your Mac.
Read more >Common Mac OS X 10.11 El Capitan Problems & Solutions
This article shows you the most common OS X El Capitan problems and provides you detailed solutions to fix these issues.
Read more >Office for Mac 2016 and El Capitan 10.11.5
I have tried the usual reboot, close and allow rest. Improves things slightly - sometimes a Word file will open for a moment...
Read more >Should I update my Mac to 10.11.5? - Mac & iPhone Answers
The answer to “Should I update my Mac to 10.11.5?” is easy if you're already on 10.11.0, or 10.11.1, or 10.11.2, or 10.11.3,...
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
When you run your script, run it like this:
Does it output color?
Yes. The child process is piped to the parent process which makes
isatty()
return0
(false) within the child process, shutting off colored output thanks tosupports-color
returning afalse
-ey result.Pass an
env
entry withFORCE_COLOR=1
to the child.Some pseudo-code:
That should get you what you want (barring weird edge-cases).
Hope that helps 💃