-
Notifications
You must be signed in to change notification settings - Fork 354
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
Error: The process '/usr/local/bin/npx' failed with exit code 1 #211
Comments
Could you provide any more details? Maybe enable debugging and post the logs ? Maybe a link to the action run?
…Sent from my iPhone
On Oct 23, 2020, at 18:29, George C. Norris ***@***.***> wrote:
Using version 5.4.0 Cypress
Getting a ..
Error: The process '/usr/local/bin/npx' failed with exit code 1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
We are also experiencing this today. These are the logs:
Looking at the changes we've made since Friday, where it last worked, I don't expect it to be something on our end. I'll try to double-check. |
I am not sure if related but starting to see "cannot run binary errors" as well very recently.
With the following receipt
Almost looks like Still diagnosing the issue. |
We're seeing the exact same error as @miohtama, except with yarn instead of npm. Haven't managed to do any further digging. Our config is: - name: Install dependencies
run: yarn install --frozen-lockfile
- name: Check formatting
run: yarn run format:check
- name: Run Cypress
uses: cypress-io/github-action@v2
with:
working-directory: web
install: false
start: yarn serve |
It is a regression in Cypress action. I do not know what or where. I fixed by pinning down Cypress action to an earlier version:
|
The explicit version pin by is a good solution for now Can someone run with https://github.com/cypress-io/github-action#debugging flags on and paste the full log up to the error? I wonder if the new caching does not restore the caches correctly and thus fails to run. |
These are the full logs:
I modified the "keys" in there because I wasn't sure if they were secret. |
Hmm, so weird, this is working in all examples in https://github.com/bahmutov/cypress-gh-action-example Does anyone have a public repo showing the problem? @andersravn what the version of Cypress specified in the package.json file? Is it exact or does it use |
@andersravn can you post your full workflow file, I wonder if there is something else going, and if it does not actually install Cypress binary while doing |
I have the same problem except with yarn. yarn install works.
I'll see if I can repo this in a public repo, since the error is in a private repo. |
@bahmutov I was able to reproduce the error with a public version here: https://github.com/hrgui/cypress-lerna-example/runs/1322329639 This PR shows that v2.2.7 does work: v2.3.0 does not: |
@hrgui I am trying to recreate the error and still fail. Can you try v2.3.5 please? |
Interesting, I just recreated it in this workflow, similar to your @hrgui where the install happens in the root folder, while we try to run using name: subfolder
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# first, install dependencies and Cypress
# from the root folder using the lock file
- name: Cypress install
uses: cypress-io/github-action@v2
with:
runTests: false
# now run the tests from the subfolder
- name: Cypress run
uses: cypress-io/github-action@v2
with:
install: false
working-directory: packages/e2e
start: yarn start-server |
This is so weird. There are definitely both tools When just printing npm or yarn version from subfolder, it fails
when not setting
Hmm, could it be the full working directory?! |
🎉 This issue has been resolved in version 2.3.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks @bahmutov Confirmed it's working in https://github.com/hrgui/cypress-lerna-example/runs/1323455193 |
hello a solved the problem when i remove from gitIgnore the folder dist/ i am using Angular with firebase hosting |
Adding "engines" to package.json will fix the issue: "engines": {
"pnpm": ">=9.0.0 <11.0.0",
"npm": ">=10.0.0 <11.0.0",
"node": ">=22.0.0 <23.0.0"
} |
Using version 5.4.0 Cypress
Getting a ..
Error: The process '/usr/local/bin/npx' failed with exit code 1
The text was updated successfully, but these errors were encountered: