To set up the environment for Cypress.io follow these steps
Make sure you have Node.js installed on your machine. Cypress.io requires Node.js 12 or later. You can download and install Node.js from the official website
Once folder was created we need to configure our Environment variable as follows
Define variable name as NODE_HOME and paste node.js path in variable value as below
Initialize a new Node.js project by running the following command in your project directory
npm init –y
Install Cypress as a dev dependency by running the following command in your project directory
npm install cypress --save-dev
Once the installation is complete, you can open the Cypress Test Runner by running the following command in your project directory
npx cypress open
That's it! You have now set up the environment for Cypress.io and can start writing and running your tests.
You can also customize the Cypress configurations and explore more advanced features provided by Cypress.io.
For more information, you can refer to the official Cypress.io  documentation