Open dwelle opened 7 years ago
I am facing the same issue on Cypress 12.13.0, where cy. exec(command) fails on Github Action runs on ubuntu machine, but works locally from Machine Terminal in MAC OS.
I'm facing the same issue on Cypress 13.6.4. When can this be solved?
@B34v0n
I'm facing the same issue on Cypress 13.6.4. When can this be solved?
Which version of Windows and which shell / terminal window application are you using?
Running https://github.com/cypress-io/cypress-example-kitchensink/blob/master/cypress/e2e/2-advanced-examples/misc.cy.js om Windows 11, I found that cy.exec()
failed in Git Bash, and ran successfully in Command Prompt and PowerShell.
@MikeMcC399
I'm using Windows 11 22H2 with Git Bash. I can't use PowerShell, because it is a work-computer and it's locked.
The whole company uses the git-bash and no one uses the normal cmd (for nvm for example). So I need it to work with git-bash on Windows.
@B34v0n
Thanks for confirming that you are using Git Bash where it's a known issue. Looking back at the history, this issue has been open for over 6 years and different people have suggested different workarounds and solutions, although none have made their way into Cypress as a standard resolution.
Current behavior:
From the bug, the path seems mangled:
/c/Program
:
inserted into the (Program Files
) folder name for some reasonHow to reproduce:
Additional Info (images, stack traces, etc)
On my machine is installed (and in env variables) the git-for-windows bash, which is the bash the cypress is trying to invoke.