Open Usnul opened 3 weeks ago
@Usnul Are you downloading 2 versions of Cypress within the same project?
Can you provide a way to reproduce this?
Are you downloading 2 versions of Cypress within the same project?
I'm not sure, but looking at the package-lock.json
I can only see one dependency reference and a single version.
I assume it's the same issue as before based on the appearance and the fact that Computed size
is different every time.
Also, never seen that particular problem before with other packages.
Can you provide a way to reproduce this?
I don't think so, also the project in question is closed source. If it helps any, npm is version is 9.6.7
@Usnul
You can try the following:
npm install --ignore-scripts
Set the environment variable DEBUG=cypress:*
. Depending on whether you are using git bash / PowerShell / cmd that is one of the following:
export DEBUG=cypress:*
$Env:DEBUG='cypress:*'
set DEBUG=cypress:*
then execute:
npx cypress cache clear
npx cypress install
That may succeed or it may just give additional debug information.
Hi @MikeMcC399 ,
I changed the version to 13.3.0, and the error went away.
Can you describe how you connect to the Internet? Is this a personal / mobile / corporate network?
It's a 5G connection, using a very decent ZTE router. The issue is that signal to noise ratio is too high and I lose a lot of packets. This doesn't really lead to data corruption, it just creates a lot of disconnection events across the network stack, from micro-stutter during voice calls where signal drops out for 100ms, up to router losing signal and internet dropping out entirely for a few seconds.
Generally, I don't have a problem downloading, say a 1Gb file from the browser. I work a lot with NPM-based projects, and I've never had this kind of an issue either. Hope this is detailed enough.
According to your log file, your download is 99% complete. This means that it is missing the end of the file.
My internet is bad, but I don't think it's so bad as to always miss the end of the file, or that the machinery for download is so bad that it mistakes missing data for completion.
@Usnul
Thanks for describing your network connection! It sounds like the download process, which uses Node.js, may not be coping with the network reliability.
Is Cypress 13.3.0
sufficient for your needs or do you need to use Cypress 13.11.0
(or a later version)?
If you are able to download the complete Cypress binary (cypress.zip
) in a web browser it should be possible to unzip this into the Cypress cache location for Windows, which is a version-specific directory %LOCALAPPDATA%\Cypress\Cache\<Cypress version>
you would need to create.
https://download.cypress.io/desktop/13.11.0?platform=win32&arch=x64 downloads the specific version https://download.cypress.io gets you the latest
See https://docs.cypress.io/guides/references/advanced-installation#Download-URLs
Current behavior
Explodes on checksum when installing
Desired behavior
Does not explode
Test code to reproduce
Pretty sure it's related to my slow internet speed. Not sure how to reproduce this reliably, but for me it happens pretty much every time.
Cypress Version
13.11.0
Node version
18.16.0
Operating System
Win 11 H (Version 10.0.22631 Build 22631)
Debug Logs
Other
see : https://github.com/cypress-io/cypress/issues/4595