Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bennymeade opened this issue Apr 27, 2022 · 3 comments
Closed

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

bennymeade opened this issue Apr 27, 2022 · 3 comments

Comments

@bennymeade
Copy link

bennymeade commented Apr 27, 2022

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
Copy link

franco-glide commented Apr 27, 2022

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

@bennymeade
Copy link
Author

Thanks @franco-glide that worked for me too.

@tnicola
Copy link
Owner

tnicola commented Dec 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants