Should help with avoiding errors like:
No version of Cypress is installed in: /home/rkb/.cache/Cypress/6.2.1/Cypress
Please reinstall Cypress by running: cypress install
----------
Cypress executable not found at: /home/rkb/.cache/Cypress/6.2.1/Cypress/Cypress
----------
Platform: linux (NixOS - )
Cypress Version: 6.2.1
and
Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.io/required-dependencies
If you are using Docker, we provide containers with all required dependencies installed.
----------
Command failed with ENOENT: /home/rkb/.cache/Cypress/6.2.1/Cypress/Cypress --no-sandbox --smoke-test --ping=459
spawn /home/rkb/.cache/Cypress/6.2.1/Cypress/Cypress ENOENT
----------
Platform: linux (NixOS - )
Cypress Version: 6.2.1
EACCES: permission denied, open '/home/rkb/.config/Cypress/cy/production/browsers/chrome-stable/interactive/CypressExtension/background.js'
apply this patch to Cypress from within the shell.nix
(or get it upstreamed?) done. Super hacky, but done!
In my case I was using Cypress 6.2.1, and I was getting read-only errors for a socket.io file. Instead of trying to find out where in Cypress's installation procedure that was being copied, and changing its permissions, I just
find ~/.config/Cypress -exec chmod -v +w {} \;
and it's working…