cypress-parallel icon indicating copy to clipboard operation
cypress-parallel copied to clipboard

Error: Cannot find module 'colors/safe'

Open TenPotatoes opened this issue 2 years ago • 3 comments

I hit this today on fresh install of 0.9.0

https://github.com/tnicola/cypress-parallel/issues/101

Sounds like the fix is to add colors as a dependency of cypress-parallel

TenPotatoes avatar May 20 '22 19:05 TenPotatoes

Same here Error: Cannot find module 'colors/safe'

NaZaRKIN123 avatar May 22 '22 12:05 NaZaRKIN123

It reproduces on CI. Locally works without issues. Installing the colors package on CI also didn’t help.

orlyk avatar May 25 '22 13:05 orlyk

I have the same issue and installing colors package also is not fixed. Are there any suggestions to fix it?

cypress-parallel -s npm run test -t 4

node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'colors/safe' Require stack:

  • D:------\node_modules\cypress-parallel\cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (D:--------\frontend-react\node_modules\cypress-parallel\cli.js:4:16) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) { code: 'MODULE_NOT_FOUND', requireStack: [ 'D:---\.---\frontend-react\node_modules\cypress-parallel\cli.js' ] }

Process finished with exit code 1

oktayibis avatar Jun 10 '22 11:06 oktayibis

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

tnicola avatar Dec 28 '22 11:12 tnicola