cypress upgrade guide code example
Example 1: update cypress
npm install --save-dev cypress@4.11.0 //replace the version that you want
//yarn
yarn upgrade cypress@4.11.0
Example 2: how to update to cypress 6.4
npm install --save-dev cypress@6.4