Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

399
Vistas
Invalid configFile (Cypress 10.0) - cannot find module

I'm trying to convert my Cypress configFile to use with Cypress 10.0+

I've followed the new documentation, however Cypress is stating my file is invalid.

"Error: Cannot find module 'cypress'"

Here's the config I'm trying to use...

const { defineConfig } = require('cypress')

module.exports = defineConfig({
    e2e: {
        specPattern: "tests/e2e/**/*.cy.js",
        supportFile: "tests/support/e2e.js"
    },
    projectId: "zpk6q6",
    reporter: "junit",
    reporterOptions: {
        mochaFile: "tests/test-output-[hash].xml",
        toConsole: true,
        attachments: true
    }
})

Hopefully someone else in the Cypress community can assist me. Thanks in advance!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I managed to solve this.

Before I run npx cypress run..., I needed to actually install Cypress. So my command looks like

npm install cypress --save-dev
npx cypress run --browser chrome
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda