Unable to install all the dependencies for Cypress project #31058
Unanswered
SravanthiSurethkhar
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am facing an odd issue while trying to run the command npm install. The node_modules folder is not found to be getting generated and also the command has been running continuously for the past 30 mins. Badly need help in resolving the issue. I am attaching cypress.config.js and package.json files , could anyone please check and let me know if anything wrong with the files.
cypress.config. js:
const { defineConfig } = require("Cypress");
const fs = require('fs');
const path = require('path');
const XLSX = require('xlsx');
module.exports = defineConfig({
defaultCommandTimeout: 20000,
requestTimeout: 60000,
reporter: 'cypress-mochawesome-reporter',
reporterOptions: {
charts: true,
reportPageTitle: 'Test Run Results',
reportTitle: 'Automated UI Test Run Results',
embeddedScreenshots: true,
inlineAssets: true,
saveAllAttempts: false,
},
e2e: {
// specPattern: 'cypress/e2e/bdd/**/*.feature',
},
"video": false,
"viewportWidth": 1600,
"viewportHeight": 1320,
"numTestKeptInMemory": 5,
"pageLoadTimeout": 180000,
"chromeWebSecurity": false,
"redirectionLimit": 200,
"retries": 0,
/*
reporter: 'mochawesome',
reporterOptions: {
// reportDir: 'C:/Users/MarkHunt/source/Common_Cypress/cypress/results',
reportDir: '../Common_Cypress/cypress/results',
reportPageTitle: 'Test Run Results',
reportTitle: 'Automated UI Test Run Results',
// timestamp: 'longDate',
code: false,
overwrite: false,
html: false,
json: true,
inline: true
},
*/
env: {
jsonFile: 'api/claimsJSON/requestsCreated.json',
// ENV:'kgh',
// ENV:'kc',
//ENV:'bsc',
// ENV:'kgh',
// ENV:'ks',
ENV:'ih',
// ENV: 'hcsc',
// ENV: 'nc',
//ROLE:'Admin'
// ROLE:'Analyst'
// ROLE:'QaAuditor'
// ROLE:'CSC'
// ROLE:'DocSpec'
// ROLE:'DrgReview'
// ROLE:'IbillReview'
// ROLE:'QaClqDrg'
// ROLE:'QaClqIbill'
// ROLE:'MD'
// ROLE:'Reporting'
// ROLE:'TeamLead'
ROLE: 'Admin',
// ROLE:''
// ROLE:''
// ROLE:''
// sysID:""
}
});
Package.json:
{
"name": "common_cypress",
"version": "1.0.0",
"description": "Project for code common to multiple Cypress projects",
"main": "index.js",
"scripts": {
"test": "echo "Running tests..." && npm run cypress:run"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@faker-js/faker": "^8.0.2",
"cucumber-html-reporter": "^7.2.0",
"cypress": "^13.16.0",
"cypress-file-upload": "^5.0.8",
"cypress-mochawesome-reporter": "^3.8.2",
"multiple-cucumber-html-reporter": "^3.7.0",
"neat-csv": "^5.2.0",
"xlsx": "^0.18.5"
},
"dependencies": {
"@badeball/cypress-cucumber-preprocessor": "^22.0.0",
"@bahmutov/cypress-esbuild-preprocessor": "github:bahmutov/cypress-esbuild-preprocessor",
"@cypress/grep": "^4.1.0",
"@pdfme/generator": "^1.2.6",
"csv-parser": "^3.0.0",
"cypress-real-events": "^1.7.4",
"cypress-xpath": "^2.0.1",
"date-fns": "^4.1.0",
"faker": "^5.5.3",
"file-saver": "^2.0.5",
"fs": "^0.0.1-security",
"leaflet": "^1.9.4",
"pdf-lib": "^1.17.1",
"pdfkit": "^0.13.0",
"rimraf": "^6.0.1",
"soft-assert": "^0.2.7",
"ts-loader": "^9.5.2"
},
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true,
"stepDefinitions": "cypress/e2e/bdd/step_definitions/*.js",
"json": {
"enabled": true,
"output": "./reports/cucumber/cucumber-report.json"
},
"html": {
"enabled": true,
"output": "./reports/cucumber/cucumber-html-report.html"
},
"usage": {
"enabled": true
},
"pretty": {
"enabled": true
},
"messages": {
"enabled": true,
"output": "./reports/cucumber/cucumber-message.ndjson"
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions