NestJS CLI outputs garbage

Viewed 397

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

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/cli@8.1.8 or higher.

Related