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)

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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With