NestJS create new project failed on MacOS [duplicate]

This is a bug in colors.js. Nest uses this library to color the console info. Adding this in package.json should fix it:

  "resolutions": {
    "colors": "1.4.0"
  },

Read more about it here: https://github.com/Marak/colors.js/issues/285