tnicola / cypress-parallel

Reduce up to 40% your Cypress suite execution time parallelizing the test run on the same machine.
MIT License
578 stars 121 forks source link

Error: Cannot find module 'colors/safe' #101

Closed bennymeade closed 2 years ago

bennymeade commented 2 years ago

I'm getting this error in a new clean repo:

internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'colors/safe'
image

With simple config:

{
  "name": "cypress-parallel-running-2",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts" :{
    "cy:run": "cypress run",
    "cy:parallel" : "cypress-parallel -s cy:run -t 2 -d cypress/integration/**/*.spec.js"
  },
  "dependencies": {
    "cypress": "^9.6.0",
    "cypress-parallel": "^0.9.0"
  }
}

Run command: $ npm run cy:parallel

franco-glide commented 2 years ago

I got the same problem after update to Cypress 9.6.0. I fixed it installing the colors lib npm i colors

bennymeade commented 2 years ago

Thanks @franco-glide that worked for me too.

tnicola commented 1 year ago

This should have been definitely fixed using the latest version of colors 1.4.0.