OS: MacOS darwin-arm64 (Apple M1 Silicon)
Cypress version: 13.13.2
Pnpm version: 9.12.1
Node version: 20.3.0
Nix: 2.24.9
Devenv: 1.3.1 (aarch64-darwin)
While running pnpm cypress open
or pnpm cypress run
I get the following Error: EACCES: permission denied
I have already allowed in my macos Privacy & Security
tab for Cypress to open per the workaround proposed in issue #24822 however the error still persists. For more context, I am using nix devenv. I can verify that the Cypress binary is there and the script pnpm cypress open
does run against the Nix Cypress package binary. Has the community found a workaround or is this a net new bug found only with Nix dev ecosystem?
DEBUG=cypress:* pnpm cypress run cypress:cli:cli cli starts with arguments ["/nix/store/50igyc86g95b9yjc5hxn6g8qdq6344bi-nodejs-20.3.0/bin/node","/Users/k/Desktop/k/node_modules/cypress/bin/cypress","run"] +0ms cypress:cli NODE_OPTIONS is not set +0ms cypress:cli:cli program parsing arguments +2ms cypress:cli:cli running Cypress with args [ Command { _events: [Object: null prototype] { 'option:auto-cancel-after-failures': [Function (anonymous)], 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:component': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:e2e': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:runner-ui': [Function (anonymous)], 'option:no-runner-ui': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 25, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/Users/testUser/Desktop/xyz/abc-frontend/node_modules/cypress/bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _storeOptionsAsPropertiesCalled: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _combineFlagAndOptionalValue: true, _hidden: false, _hasHelpOption: true, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _storeOptionsAsPropertiesCalled: false, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _combineFlagAndOptionalValue: true, _hidden: false, _hasHelpOption: true, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, args: [], [Symbol(kCapture)]: false } ] +0ms cypress:cli:cli variable-length opts parsed { args: [ '/nix/store/50igyc86g95b9yjc5hxn6g8qdq6344bi-nodejs-20.3.0/bin/node', '/Users/testUser/Desktop/xyz/abc-frontend/node_modules/cypress/bin/cypress', 'run' ], opts: Command { _events: [Object: null prototype] { 'option:auto-cancel-after-failures': [Function (anonymous)], 'option:browser': [Function (anonymous)], 'option:ci-build-id': [Function (anonymous)], 'option:component': [Function (anonymous)], 'option:config': [Function (anonymous)], 'option:config-file': [Function (anonymous)], 'option:e2e': [Function (anonymous)], 'option:env': [Function (anonymous)], 'option:group': [Function (anonymous)], 'option:key': [Function (anonymous)], 'option:headed': [Function (anonymous)], 'option:headless': [Function (anonymous)], 'option:no-exit': [Function (anonymous)], 'option:parallel': [Function (anonymous)], 'option:port': [Function (anonymous)], 'option:project': [Function (anonymous)], 'option:quiet': [Function (anonymous)], 'option:record': [Function (anonymous)], 'option:reporter': [Function (anonymous)], 'option:runner-ui': [Function (anonymous)], 'option:no-runner-ui': [Function (anonymous)], 'option:reporter-options': [Function (anonymous)], 'option:spec': [Function (anonymous)], 'option:tag': [Function (anonymous)], 'option:dev': [Function (anonymous)] }, _eventsCount: 25, _maxListeners: undefined, commands: [], options: [ [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option], [Option] ], parent: Command { _events: [Object: null prototype], _eventsCount: 1, _maxListeners: undefined, commands: [Array], options: [Array], parent: null, _allowUnknownOption: false, _args: [], rawArgs: [Array], _scriptPath: '/Users/testUser/Desktop/xyz/abc-frontend/node_modules/cypress/bin/cypress', _name: 'cypress', _optionValues: {}, _storeOptionsAsProperties: true, _storeOptionsAsPropertiesCalled: true, _passCommandToAction: true, _actionResults: [], _actionHandler: null, _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _combineFlagAndOptionalValue: true, _hidden: false, _hasHelpOption: true, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: undefined, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '<command> [options]', args: [Array], [Symbol(kCapture)]: false }, _allowUnknownOption: false, _args: [], rawArgs: null, _scriptPath: null, _name: 'run', _optionValues: {}, _storeOptionsAsProperties: true, _storeOptionsAsPropertiesCalled: false, _passCommandToAction: true, _actionResults: [], _actionHandler: [Function: listener], _executableHandler: false, _executableFile: null, _defaultCommandName: null, _exitCallback: null, _aliases: [], _combineFlagAndOptionalValue: true, _hidden: false, _hasHelpOption: true, _helpFlags: '-h, --help', _helpDescription: 'display help for command', _helpShortFlag: '-h', _helpLongFlag: '--help', _hasImplicitHelpCommand: 0, _helpCommandName: 'help', _helpCommandnameAndArgs: 'help [command]', _helpCommandDescription: 'display help for command', _usage: '[options]', _description: 'Runs Cypress tests from the CLI without the GUI', _argsDescription: undefined, exit: true, args: [], [Symbol(kCapture)]: false } } +121ms cypress:cli parsed cli options {} +123ms cypress:cli verifying Cypress app +0ms cypress:cli checking environment variables +0ms cypress:cli Using CYPRESS_RUN_BINARY from environment variable +0ms cypress:cli Using CYPRESS_RUN_BINARY from environment variable +0ms cypress:cli CYPRESS_RUN_BINARY exists, = /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/bin/Cypress +0ms Note: You have set the environment variable: CYPRESS_RUN_BINARY=/nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/bin/Cypress This overrides the default Cypress binary path used. cypress:cli CYPRESS_RUN_BINARY is executable? : true +3ms cypress:cli CYPRESS_RUN_BINARY has realpath: /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/Cypress.app/Contents/MacOS/Cypress +0ms cypress:cli CYPRESS_RUN_BINARY has binaryDir: /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/Cypress.app +2ms cypress:cli checking if executable exists /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/Cypress.app/Contents/MacOS/Cypress +0ms cypress:cli Binary is executable? : true +2ms cypress:cli binaryDir is /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/Cypress.app +0ms cypress:cli Reading binary package.json from: /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/Cypress.app/Contents/Resources/app/package.json +2ms cypress:cli Found binary version 13.13.2 installed in: /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/Cypress.app +1ms cypress:cli could not read binary_state.json file at "/nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/binary_state.json" +2ms cypress:cli {} +0ms cypress:cli is Verified ? undefined +1ms cypress:cli running binary verification check 13.13.2 +0ms It looks like this is your first time using Cypress: 13.13.2 cypress:cli clearing out the verified version +4ms cypress:cli needs Xvfb? false +0ms cypress:cli spawning, should retry on display problem? false +0ms cypress:cli disabling Electron sandbox +0ms cypress:cli running smoke test +0ms cypress:cli using Cypress executable /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/Cypress.app/Contents/MacOS/Cypress +0ms cypress:cli smoke test command: /nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/Cypress.app/Contents/MacOS/Cypress --no-sandbox --smoke-test --ping=23 +0ms cypress:cli smoke test timeout 30000 ms +0ms cypress:cli smoke test stdout "It looks like you are running the Cypress binary directly. This is not the recommended approach, and Cypress may not work correctly. Please install the cypress NPM package and follow the instructions here: https://on.cypress.io/installing-cypress 23" +996ms cypress:cli write verified: true +510ms cypress:cli could not read binary_state.json file at "/nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/binary_s cypress:cli detecting arch { osPlatform: 'darwin', osArch: 'arm64' } +2s An unexpected error occurred while verifying the Cypress executable. Please search Cypress documentation for possible solutions: https://on.cypress.io Check if there is a GitHub issue describing this crash: https://github.com/cypress-io/cypress/issues Consider opening a new issue. ---------- Error: EACCES: permission denied, open '/nix/store/dr4c234sscmrdmqgvazwqh1dzrldl13k-cypress-13.13.2/opt/cypress/binary_state.json' ---------- Platform: darwin-arm64 (24.0.0) Cypress Version: 13.13.2
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4