You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just ran into something similar running a script in a cron job. It turns out that the package tries to detect whether the console supports colors, and you can override it but it's not documented. This worked for me:
constcolors=require('colors');colors.enable();
It looks like you can also set process.env.FORCE_COLOR=1 or use any one of a bunch of flags to force colors to work.
When a child processes is forked:
Colors does not seem to work inside the forked child (i.e. worker.js).
The text was updated successfully, but these errors were encountered: