Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

309
Visualizações
Getting error while runing npm run test in CI

here is my package.json:

{
  
  "name": "cypressautomation",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "/node_modules/.bin/cypress  run "
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "cypress": "^9.2.0",
    "mochawesome": "^7.0.1",
    "mochawesome-merge": "^4.2.1",
    "mochawesome-report-generator": "^6.0.1"
  },
  "dependencies": {
  "cypress-iframe": "^1.0.1"
  }
}

I have built some test scripts, and after I saved all files and run npm run test I get the error:

cypressautomation@1.0.0 test > /node_modules/.bin/cypress run The system cannot find the path specified.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

I hope you are trying to run project in correct path. if your npm run test is not working, first in command prompt try running command then add the same in package json. I use this coomand to run project ./node_modules/.bin/cypress run

about 4 years ago · Juan Pablo Isaza Relatório

0

You might be facing issues with relative/absolute path conventions.

First let us cover the basis. From the command line at the folder where the package.json file is located, run npm install for the packages to be downloaded into the local node_modules folder.

You could change the command on package.json to:

"test": "cypress run"

this way we leave npm to figure out where cypress is located (will be in the node_modules folder and npm 'knows' about it)

then try the test command again:

npm run test
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda