question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CYPRESS_INSTALL_BINARY on Windows Concats to Download URL

See original GitHub issue

Current behavior:

On windows 10, setting CYPRESS_INSTALL_BINARY with the following:

setx CYPRESS_INSTALL_BINARY C:/cypressBinary.3.3.1/cypress.zip /M

Then run npm install

npm install cypress@3.3.1

Produces this in the install log:

‼ Warning: Forcing a binary version different than the default.

The CLI expected to install version: 3.3.1

Instead we will install version: C:/cypressBinary.3.3.1/cypress.zip

These versions may not work properly together.

Installing Cypress (version: C:/cypressBinary.3.3.1/cypress.zip)

× Downloading Cypress → Cypress Version: 3.3.1 Unzipping Cypress Finishing Installation The Cypress App could not be downloaded.

Please check network connectivity and try again:


URL: https://download.cypress.io/desktop/C:/cypressBinary.3.3.1/cypress.zip?platform=win32&arch=x64 Error: Failed downloading the Cypress binary. Response code: 404 Response message: Not Found

Notice how the URL contains the path to the zip file.

Some more details here: https://github.com/cypress-io/cypress-documentation/issues/761#issuecomment-428059070

and a proposed solution here: https://github.com/cypress-io/cypress-documentation/issues/761#issuecomment-446140101

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)

  • Download the cypress zip file to C:/cypressBinary.3.3.1/cypress.zip
  • Run setx CYPRESS_INSTALL_BINARY C:/cypressBinary.3.3.1/cypress.zip /M
  • Reload command window to refresh env variable
  • Run npm install cypress@3.3.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:20 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ari-meetaicommented, Nov 8, 2019

Used "" instead of “/” and it worked.

i.e.: “c:\cypressBinary\cypress.zip”

0reactions
kaiyomacommented, Jan 29, 2021

I see Unix-style for Windows here:

image

And also here:

image

Also, that path in the first screenshot is wrong. It’s missing a ~ in front.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Installation | Cypress Documentation
CYPRESS_DOWNLOAD_PATH_TEMPLATE, Allows generating a custom URL to download the Cypress binary from. CYPRESS_CACHE_FOLDER, Changes the Cypress binary cache ...
Read more >
How do I install Cypress using CYPRESS_INSTALL_BINARY?
You Can Try These steps,. set CYPRESS_INSTALL_BINARY=\your\path\to\cypress.x.x.x.zip. npm install cypress. npx cypress open.
Read more >
Installing Cypress - w3resource
In this tutorial we will show you how to install Cypress via npm, yarn. We will also show you how to install Cypress...
Read more >
2 How To Download and Install Cypress On Windows 10
In this video, I will show you how to download and install cypress in windows 10 and we will verify that basic test...
Read more >
Install Cypress on Windows 10 using Direct Download
Direct download is an alternative way of installing Cypress. However, this is not the recommended approach because it has several ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found