2.1.0 release Breaking/Broken
See original GitHub issuePlatform: Windows Server 2012 R2 Console: Cmder Node Version: v8.1.4
Example code that worked before 2.1.0 release:
const chalk = require('chalk');
const clk = new chalk.constructor({ enabled: true });
console.log(`${clk.bgBlue("Text with blue background")}${clk.bgMagenta("Text with magenta background")} ect`);
2.0.1:
2.1.0:
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Breaking? Broken more like!
Breaking? Broken more like! · Mirez · * · Webmaster · Posts: 3,920 · Make: Ford · Model: Galaxy Mk2 · Spec: 1.9...
Read more >Multiplayer Game Hacking and Cheats - UnKnoWnCheaTs
UnKnoWnCheaTs - Multiplayer Game Hacking and Cheats. We encourage an open, free and collaborative environment for cheating in games.
Read more >[ROM] PRIME! v1.6r2 | HC31 | Fast | Rooted | HMJ37 ... - XDA Forums
When can the nvflash version of PRIME! v1.5 be expected? ... are mostly about adfree breaking broken (it is fixed now with a...
Read more >DCS 1.5 / 2.0 Updates discussion thread - SimHQ Forums
We are hard working about major issues of DCS 2.1.0. Today we decide released some of first fixes. DCS World CTD caused by...
Read more >Metroid Dread update out now (version 2.1.0), patch notes
A new update is here for Metroid Dread, as Nintendo and MercurySteam have just released version 2.1.0. Patch notes have been shared.
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
Evaluating
process.stdout.isTTY
returnedundefined
in PM2 and the value forprocess.stdout._type
is pipe, however, in a normal Node.js process, the first returnedtrue
and_type
istty
:The returned value of
console.log(process.stdout);
with PM2:The returned value of
console.log(process.stdout);
without PM2:Thanks for the confirm @CyberiumShadow.
Yeah, to be honest it sounds like
supports-color
was broken before v2 - this is actually intended behavior.Please use
FORCE_COLOR=1
if you need it. Remember that any time you run your script inside of a wrapper (e.g. PM2) where it spawns a new node process, it’s most likely going to causeisatty()
to return0
under the hood, causingprocess.stdout.isTTY
to befalse
-ey.You’re more than welcome to file a ticket over at PM2 to use pseudo-terminals upon spawning, but IIRC that’s a ton of work from the Node.js end and not cross-platform compatible.
Closing unless someone has reason to believe this is unintended functionality.
Thanks for the report and all of the correspondence.