Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing cypress - stuck on unzipping 0%

When I run

npm install cypress --save-dev

In a Windows CMD Administrator session, I get the following output. This has been left overnight and still hangs on 0%: ouput

If it's important, my current project dependencies are

"devDependencies": { "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@types/webpack": "^4.41.25", "@types/react-router-dom": "^5.1.7", "@types/mui-datatables": "^3.7.3", "@types/react-text-mask": "^5.4.7", "@typescript-eslint/eslint-plugin": "^4.17.0", "@typescript-eslint/parser": "^4.17.0", "clean-webpack-plugin": "^3.0.0", "css-loader": "^5.0.1", "eslint": "^7.21.0", "eslint-config-prettier": "^8.1.0", "eslint-plugin-react": "^7.22.0", "eslint-plugin-react-hooks": "^4.2.0", "eslint-webpack-plugin": "^2.5.2", "html-webpack-plugin": "^4.5.0", "husky": "^4.3.8", "lint-staged": "^10.5.4", "prettier": "2.2.1", "style-loader": "^2.0.0", "ts-loader": "^8.0.11", "typescript": "^4.1.2", "url-loader": "^4.1.1", "webpack": "^5.9.0", "webpack-cli": "^4.2.0", "webpack-dev-server": "^3.11.0", "webpack-merge": "^5.4.0" }, 
"dependencies": { "@date-io/dayjs": "^1.3.13", "@fontsource/roboto": "^4.2.2", "@material-ui/core": "^4.11.2", "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.57", "@material-ui/pickers": "^3.3.10", "axios": "^0.21.1", "clsx": "^1.1.1", "dayjs": "^1.10.4", "emailjs-com": "^3.1.0", "jwt-decode": "^3.1.2", "moment-timezone": "^0.5.33", "mui-datatables": "^3.7.7", "notistack": "^1.0.9", "react": "^17.0.1", "react-dom": "^17.0.1", "react-live-clock": "^5.2.0", "react-moment": "^1.1.1", "react-print-components": "^1.0.4", "react-router-dom": "^5.2.0", "react-text-mask": "^5.4.3", "text-mask-addons": "^3.8.0" }

Any help to identify the cause or any logs I should be looking at would be greatly appreciated

like image 702
Daniel M Avatar asked Dec 06 '25 04:12

Daniel M


1 Answers

I had the same issue when trying do a fresh npm installation for a project. Running in the same command in an elevated window did not help. Jakob's answer helped above:

Visit https://docs.cypress.io/guides/getting-started/installing-cypress#Direct-download

Download the version of Cypress from https://download.cypress.io/desktop or alternatively put the version number at the end : https://download.cypress.io/desktop/8.7.0

Extract the folder to:

C:\Users\[username]\AppData\Local\Cypress\Cache\[version]

I ran npm install and the install completed without error.

like image 157
PaulGrant Avatar answered Dec 07 '25 18:12

PaulGrant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!