https://cypress.io logo
Trying to install Cypress from a downloaded Zip
# i-need-help
k
I'm working in a secure environment, meaning there is no access to internet. I'm using a windows 10 machine and I have followed the install guide located here: https://docs.cypress.io/guides/references/advanced-installation. Which refers to setting up a CYPRESS_INSTALL_BINARY variable which points to the location of the cypress zip file. However, after setting this variable and executing the npm install command, it still invokes the online registry fetch, which eventually fails. I then tried the direct command that simply points to the zip i.e. CYPRESS_INSTALL_BINARY=/mypath/cypress.zip npm install cypress and I get an error as it is not a recognized command. I guess I'm doing something wrong but I cant work it out. It doesn't seem to be a complicated task when looking at the instructions. Does anyone have any step by step instructions that work for them? There is a direct install option but I would prefer to install via npm, if possible. Also for reference I'm trying to install cypress 9.6.0 so its not the latest version of Cypress.
b
We have a similar issue. I can share the steps we take to install. We have a connection to Nexus where all needed software is stored and we can reach. And we have a folder with different versions of Cypress zip files on our network. - in command promp
set CYPRESS_INSTALL_BINARY=<path of the zip, incl filename>
- next run
npm install cypress@<versionnumber> --save-dev
- sometimes we needed to next run
cypress install
, but this depends on the error you get - we have to set a proxy path as well Sometimes the Cypress executable cannot be found, this can be solved by adding Cypress to path in your system variables. Hope these things include the solution to your problem.
k
Thank you so much.