github-action: Error: The process '/usr/local/bin/npx' failed with exit code 1

Using version 5.4.0 Cypress

Getting a … Error: The process '/usr/local/bin/npx' failed with exit code 1

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

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:

    - name: Cypress run
      uses: cypress-io/github-action@v2.2.7

I am not sure if related but starting to see “cannot run binary errors” as well very recently.

(node:28066) UnhandledPromiseRejectionWarning: Error: There was an error when attempting to execute the process '/usr/local/bin/npm'. This may indicate the process failed to start. Error: spawn /usr/local/bin/npm ENOENT

With the following receipt

    - name: Cypress run
      uses: cypress-io/github-action@v2
      with:
        working-directory: ./frontend_new
        build: npm run build:testing
        start: npm run start:integration-test-server
        record: true
      env:
        CI: true
        # pass the Dashboard record key as an environment variable
        CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

Almost looks like PATH or /usr/bin is destroyed between build and start steps. npm works in build, but no longer in start.

Still diagnosing the issue.

hello a solved the problem when i remove from gitIgnore the folder dist/ i am using Angular with firebase hosting