Skip to content
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

[BUG] The process '/usr/local/bin/npx' failed with exit code 1 #277

Open
yamankatby opened this issue Apr 12, 2023 · 7 comments
Open

[BUG] The process '/usr/local/bin/npx' failed with exit code 1 #277

yamankatby opened this issue Apr 12, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@yamankatby
Copy link

I'm getting this error in the Deploying to production site group

Action config

"on":
  push:
    branches:
      - yaman/workflow

jobs:
  build_and_preview:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - run: yarn install --frozen-lockfile && yarn run build-storybook
      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: "${{ secrets.GITHUB_TOKEN }}"
          firebaseServiceAccount:
            "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ROWY_TESTING }}"
          projectId: rowy-testing
          channelId: live
          target: rowybook

Error message

  The process '/usr/local/bin/npx' failed with exit code 1
  Error: The process '/usr/local/bin/npx' failed with exit code 1
  ***
    conclusion: 'failure',
    output: ***
      title: 'Deploy preview failed',
      summary: "Error: The process '/usr/local/bin/npx' failed with exit code 1"
    ***
  ***

Expected behavior

Actual behavior

@yamankatby yamankatby added the bug Something isn't working label Apr 12, 2023
@MixMasterT
Copy link

MixMasterT commented Apr 22, 2023

I have been getting this same error.

It looks like the culprit may be that the called action (FirebaseExtended/action-hosting-deploy@v0) doesn't enable webframeworks.

The following error is copied from the build_and_deploy action's output on the step that runs FirebaseExtended/action-hosting-deploy@v0.

Error: Cannot deploy a web framework to hosting because the experiment webframeworks is not enabled. To enable webframeworks run firebase experiments:enable webframeworks

@MixMasterT
Copy link

It looks like this works:
add

  steps:
    - uses: FirebaseExtended/action-hosting-deploy@v0
       with:
          repoToken: '${{ secrets.GITHUB_TOKEN }}'
          firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_... }'
          ...
       env:
         FIREBASE_CLI_EXPERIMENTS: webframeworks

The last part, adding env with FIREBASE_CLI_EXPERIMENTS is what got me past this error.

Here is a helpful Stack Overflow link.

@jeemercado
Copy link

Did you manage to fix this? @yamankatby

@hyperlate
Copy link

I now have the same bug but with exit code 2...

Is there any update on the situation or should I open a new issue?

@jeemercado
Copy link

I now have the same bug but with exit code 2...

Is there any update on the situation or should I open a new issue?

Add a firebaseToolsVersion: specify what tool version to use

@odwrotnie
Copy link

Which firebaseToolsVersion works?

sankaSanjeeva added a commit to sankaSanjeeva/SchoolSync that referenced this issue Mar 16, 2024
@sankaSanjeeva
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants