-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't run on Windows "Error: spawn cypress ENOENT" #57
Comments
Hey Matt! Thanks for opening an issue, I'm going to give this a whirl on my Windows machine today to see if I can uncover what's going on here. |
Alright, what is going on here is really subtle. Could you give this a try and see if it works for you? npx percy exec -- cypress.cmd run --spec "cypress/integration/*" That worked for me locally and it's what we have to do in our node scripts with example apps to support windows: https://github.com/percy/example-percy-cypress/pull/23/files#diff-5768af5deda587912dcade757b171d20R8 |
Sorry it took so long to follow up. I confirmed that using I thought the |
Going to close this one up. We released a new version of both this SDK & the underlying SDK ( What's happening is nodes spawn ignores windows PATHEXT which is kinda like $PATH & that means spawn only works on Windows for .exe files. There's a little more information in the PR linked above. |
Executing the command
npx percy exec -- cypress run --spec "cypress/integration/*"
fails on when running locally on Windows but runs successfully on CircleCI linux VM so that's why I'm guessing it's OS dependent.Output:
Versions:
Windows 10 Pro 10.0.17763 Build 17763
The text was updated successfully, but these errors were encountered: