Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

398
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!