Sometimes when I try to execute an executable that is not installed by nix, I receive the error:
Failed to execute process '<executable>'. Reason: The file '<executable>' does not exist or could not be executed.
Unfortunately there is no further information why the executable doesn’t work.
E.g. I got this error now in a node context (installed dependencies by npm):
Failed to execute process '/home/philm/.cache/ms-playwright/chromium-775089/chrome-linux/chrome'. Reason: The file '/home/philm/.cache/ms-playwright/chromium-775089/chrome-linux/chrome' does not exist or could not be executed.
Is there any way to solve this (e.g. with nix-shell)?
A general solution without nix-shell would be preferred though, as especially in non-pure development context this can get quite tedious. (probably a missing package that is required systemwide?).