Cypress not installing using local zip on windows
See original GitHub issueCurrent behavior:
When running the following command
set CYPRESS_INSTALL_BINARY=C:/temp/cypress.zip && npm install cypress@3.3.1
Where C:/temp/cypress.zip
is a fresh download of 3.3.1.
The installation gets aborted because it seems like it tries to use the path as a relative external url.
> node index.js --exec install
‼ Warning: Forcing a binary version different than the default.
The CLI expected to install version: 3.3.1
Instead we will install version: C:/temp/cypress.zip
These versions may not work properly together.
Installing Cypress (version: C:/temp/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:/temp/cypress.zip?platform=win32&arch=x64
Error: self signed certificate in certificate chain
----------
Platform: win32 (10.0.16299)
Cypress Version: 3.3.1
Note the URL.
I’ve tried all kinds of ways of providing the url
- Single Windows slashes
\
- Double Windows slashes
\\
- Normal slashes
/
- File path
file://C:/temp/cypress.zip
- HTTP path
http://C:/temp/cypress.zip
(it doesn’t make sense, but I got desperate)
It fails on the self-signed certificate because of the corporate proxy.
Desired behavior:
Able to install from a local zip as described here https://docs.cypress.io/guides/getting-started/installing-cypress.html#Install-binary
Steps to reproduce: (app code and test code)
- (Uninstall Cypress)
- Download Cypress from any mirror
- Follow the instructions in the Cypress docs using the path to the file you downloaded in the previous step as the install binary.
Versions
Trying to install Cypress 3.3.1 Windows 10 Behind a corporate proxy and all the corporate goodies it brings with it
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (17 by maintainers)
Top Results From Across the Web
How to Install cypress in window using zip file if npm ... - Medium
Step 3: Above command will take some time to extract the zip file. Restart the vscode.
Read more >Advanced Installation | Cypress Documentation
Specify a file to install locally instead of using the internet. shell CYPRESS_INSTALL_BINARY=/local/path/to/cypress.zip npm install cypress. In all cases, the ...
Read more >How to install Cypress from local zip file using npm
Please, try this in PowerShell: setx CYPRESS_INSTALL_BINARY C:/Users/c64881a/Downloads/cypress.zip.
Read more >How to get Cypress working on windows - DEV Community
Download zip file from Cypress · In vscode terminal run, setx CYPRESS_INSTALL_BINARY C:\path-to\Downloads\cypress.zip · Don't be in a hurry ...
Read more >Installing Cypress - w3resource
The direct download always uses the latest available version and it will detect your platform automatically. Once you download the zipped file ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yeah, this is what I want to do in https://github.com/cypress-io/cypress/pull/4579
Released in
3.4.0
.