cypress update code example
Example 1: update cypress
npm install --save-dev [email protected] //replace the version that you want
//yarn
yarn upgrade [email protected]
Example 2: 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 3: open cypress window
./node_modules/.bin/cypress open // just cypress open wont work
Example 4: run cypress
./node_modules/.bin/cypress open