firebaseterminalfirebase-consolechalk

Why console.logs are not colorized using colorette or chalk in a Firebase project on my Mac?


I was trying to colorize the logs on terminal and it worked for simple NodeJS project both on my Windows PC and Mac, but for a Firebase project on my Mac, it is not working (no issue on Windows).

I tried using Warp, Terminal.app, and VSCode's ZSH. I tried switching packages from colorette to chalk but didn't work.

Screenshot of the issue


Solution

  • Try using 'ansi-colors'. I'm using it in firebase project on mac and it works fine.