Home > Mobile >  NestJS create new project failed on MacOS
NestJS create new project failed on MacOS

Time:01-10

I'm currently using macOS 10.14.6(Mojave). When I started to create new nestjs by the cli nest new prj, I got this problem and can not figure out what happened? What is the problem and how can I fix this issue?

enter image description here

CodePudding user response:

this is a bug in colors.js. nest use this lib 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

CodePudding user response:

Resolutions fix didn't seem to work for me. But this does:

npm install [email protected]
  •  Tags:  
  • Related