How to Install cypress in Windows & Mac using zip file, if NPM cypress fails?

Cypress is one of the modern JavaScript /TypeScript based Testing framework and is becoming more and more popular mainly due to:

1. Easy to use cypress commands which has ability to auto wait for elements.

2. Can be used for both UI and API testing.

3. Provides additional plugin to test the website Accessibility features.

4. Tool setup is very easy.

5. No additional web driver initialization/setup

6. Interactive dashboard feature which is built in which provides easy snapshot of each and every executed test steps.

Challenge:

One of the roadblock which you might have experienced while trying to install cypress in the Corporate work environment is that while running Cypress installation command, download may fail. This may occur even if no proxy settings exists for the organization, which can be used during the installation steps. Sample error provided below:

Reference: Github issue

Solution -1:

Leave a Reply