Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NestJS CLI outputs garbage

I have used NestJS quite a bit and also it's CLI, but when I wanted to use it now, it started outputting garbage, with every command I tried:

    nest
    nest info
    nest new
    npm run start:dev

This started happening today. I generated a new project, and from then every NestJS CLI command started looking like this: (i have tried reinstalling the CLI and rebooting the computer, also angular and ionic CLIs work just fine) NestJS CLI output

like image 705
qlabfgerkaSmurf Avatar asked Aug 10 '26 21:08

qlabfgerkaSmurf


1 Answers

This is a known issue due to an update to colors.js that cli-table3 depends on that the Nest CLI depends on. There's already a PR to fix it and it should be fixed within a day. More discussion on GitHub here


If you're still running into this, make sure you're using @nestjs/[email protected] or higher.

like image 50
Jay McDoniel Avatar answered Aug 12 '26 12:08

Jay McDoniel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!