New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CYPRESS_INSTALL_BINARY on Windows Concats to Download URL #4296
Comments
I have a similar issue, after set up the The error message is: I have already setup the proxy, so if 3.3.1 has resolved the issue, this should not happen again. |
@jasmine-zhang-nz Are you also setting the |
Could it be that the file does not exist? That should be made clerar with the fix in #5060 |
Used "" instead of "/" and it worked. i.e.: "c:\cypressBinary\cypress.zip" |
I've run into this problem as well. If I set
You can see that the URL is very badly malformed:
But I believe it's a problem that the URL is being created anyway. Why is Cypress trying to download a binary when I already told it I have one locally? |
Could you run There should be a debug log that will print the |
|
Just ran into a related issue. I have version 4.1.0 specified in my package.json, but when I
No one told it to download version 4.2.0. Why is it doing that? |
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen. |
This is still an issue. |
@kaiyoma Could you run Cypress in debug mode mode and print the entire set of logs here? |
I believe I already did this here: #4296 (comment) |
@jennifer-shehane I don't think this is the same issue. It's not an issue of the checksum being wrong. The actual URL is being constructed incorrectly and the download fails entirely. I still run into this issue, so please leave this open. An example URL (from my post above) which is clearly wrong: |
@jennifer-shehane Can you please reopen this issue? Otherwise I'm just going to have to file a new one with all the same info again, because I still run into this issue regularly. Note the URL below:
|
@kaiyoma The suspicious log line in your DEBUG logs is this one
For some reason, it see a mixture of unix-like paths and window current working directory. Because you said it was Cygwin - what happens when you pass the traditional Windows path to the binary? Because that would break the |
I can try this out, but I will note that Cypress's own docs use the forward-slash, Unix style for directories, even for Windows: https://docs.cypress.io/guides/getting-started/installing-cypress.html |
I believe using Windows-style paths does actually work here, thanks for the suggestion! I guess that means the docs are wrong? (I also didn't realize that |
Current behavior:
On windows 10, setting
CYPRESS_INSTALL_BINARY
with the following:Then run npm install
Produces this in the install log:
Notice how the URL contains the path to the zip file.
Some more details here: cypress-io/cypress-documentation#761 (comment)
and a proposed solution here: cypress-io/cypress-documentation#761 (comment)
Desired behavior:
Setting
CYPRESS_INSTALL_BINARY
on windows should install using the file located in the env variable.Steps to reproduce: (app code and test code)
C:/cypressBinary.3.3.1/cypress.zip
setx CYPRESS_INSTALL_BINARY C:/cypressBinary.3.3.1/cypress.zip /M
env
variablenpm install cypress@3.3.1
The text was updated successfully, but these errors were encountered: