npx cypress code example
Example 1: install cypress
npm install cypress or npm install cypress --save-dev // Make sure that you have already run npm init
./node_modules/.bin/cypress open //to open cypress window, will take 30 secs
Example 2: run cypress
./node_modules/.bin/cypress open
Example 3: hot to start cypress
npm install cypress //takes about 3-5 minutes for entire process
./node_modules/.bin/cypress open // just cypress run wont work