Question: I am getting this error 'Cypress executable not found at: /root/.cache/Cypress/3.8.3/Cypress/Cypress' when the cypress command 'npx cypress run -P projects/demoProject-cypress' is run on docker at cloud. This is a command written in jenkins to run before deployment. I have tried wait-on but it is not useful. This is a angular project on npm.

Help!

Answer: 
Set `CYPRESS_CACHE_FOLDER` environment variable.

Ex on Linux:

```
export CYPRESS_CACHE_FOLDER=/custom_path/cypress

```

When you install `Cypress` it's caching some binaries and stuff. Usually, for a regular user, default cache locations are as follows.

```
MacOS: ~/Library/Caches/Cypress
Linux: ~/.cache/Cypress
Windows: /AppData/Local/Cypress/Cache

```

When `CYPRESS_CACHE_FOLDER` env variable is set Cypress resources will be cached to that location and when running, Cypress will find stuff there. Make sure the user has access to the cache location.
If you installed cypress through npm i.e **npm install cypress**, then follow the instructions displayed after a complete installation. Which in my case said, *You can now open Cypress by running:* **node\_modules/.bin/cypress open**. This command should be run if you are running Cypress for the first time, whereby Cypress will create and Verify its location in **~/Library/Caches/Cypress/6.2.0/Cypress.app** path. Then you will be able to open it again by running **npx cypress open** command in the terminal. Otherwise, download and install the desktop version from [here](https://download.cypress.io/desktop).