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!
On Cypress 7.5.0, noreferences' fix works, but I run into another error in interactive mode, only the second time I launch the browser in "open" mode:
Running
chmod u+rw -R ~/.config/Cypress/
lets me get past that error... not sure what to patch to avoid it in the first place.