Marak / colors.js

get colors in your node.js console
https://github.com/Marak/colors.js
Other
5.17k stars 446 forks source link

Color library is not working in gitbash #191

Closed walifaizy closed 6 years ago

walifaizy commented 7 years ago

Node version: 6.10.0

npm version: 3.9.5

Operating system: windows 10

Command line used: Git bash

Steps to reproduce: I am trying to make text(Starting App in Deve mode) in green color but it is not happening, can you please preview my project github link https://github.com/walifaizy/react-redux-library screenshot 86

wzup commented 7 years ago

100% true. Does not work at all.

wzup commented 7 years ago

A workaround https://github.com/Marak/colors.js/issues/196#issuecomment-302943622

Setting process.stdout.isTTY = true; before importing colors works

process.stdout.isTTY = true;
var colors = require('colors');
DABH commented 6 years ago

Does this work now using colors@next? I believe this should have been fixed, without having to use the workaround.

DABH commented 6 years ago

Marking this as closed due to lack of activity. Thanks!