top of page
Search

Cypress Installation and Setup

Updated: Apr 14, 2021

Cypress is a desktop application, that can be installed via npm or directly by download. And the desktop application supports the following Operating System.

  1. macOS 10.9 and above (64-bit only)

  2. Linux Ubuntu 12.04 and above, Fedora 21 and Debian 8 (64-bit only)

  3. Windows 7 and above



Installation

To Install Via Npm:


Step 1: Install Node.js

As cypress is written in Node.js, we first need to install Node.js in our machine to install npm.

  • You can download Node.js from its official website.


Step 2: Set Environment Variable


In your PC, go to advance settings -> set Environment Variable and system variable.


Click New -> set variable name as "NODE_HOME" and your Node.js path to variable value.


Step 3: Created package.json


Create a folder where you want to have your workspace. Open Command prompt from that path, and type the following command.

                                npm init

Once you have typed your command, enter the required details, type yes and hit enter.


Now you could see, Package.json is created in the folder created.


Step 4: Install Cypress


You can use the following commands to install cypress from command prompt.

npm install cypress --save-dev

Or if your npm version is >5.2 you can use,

npx cypress install

or

npx cypress install --force

Step 5: Open Cypress


To open cypress from command prompt, enter any of the following commands,

node_modules/.bin/cypress open

By using the alias for node modules:

$(npm bin)/cypress open 

Or

npx cypress open

To Direct Donwload:


You can directly download cypress from the official cypress site.


Conclusion:


Now we have Learnt how to Install and setup cypress in your desktop. Happy Testing!!










152 views0 comments

Recent Posts

See All

Minimum Deletions to Make Character Frequencies Unique

A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the minimum number of characters you need to delete to make s good. The f

Smallest String With A Given Numeric Value

The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, so the numeric value of a is 1, the numeric value of b is 2, the numeric value of c is 3, and so on.

bottom of page