Recently when I was trying to install Cypress for my project, it was failed due to self-signed certificate or proxy issue as below:
I've tried to set the NODE_EXTRA_CA_CERTS to point to my certificate in local as environment variable but it's still not working.
After digging around the documentation, I found a way to solve this problem as below:-
1.Download the cypress zip file for the version you want to install from the official cypress website
2.Set the CYPRESS_INSTALL_BINARY to the cypress zip location that you've downloaded at .npmrc or you can use npm set command to set the variable.
- Set CYPRESS_INSTALL_BINARY in .npmrc ```
CYPRESS_INSTALL_BINARY=/path/to/cypress.zip
- Set CYPRESS_INSTALL_BINARY using npm
npm config set CYPRESS_INSTALL_BINARY /path/to/cypress.zip
3.Use **npm install** command to install the cypress.Then it will install the downloaded cypress zip instead of downloading from the source.
- Install cypress with npm
npm install --save-dev cypress
Thank you and see you next time :)
Top comments (0)