guness / bitrise-step-firebase-app-distribution

Upload your apps to Firebase and sends email to your testers.
MIT License
35 stars 25 forks source link

Step fails with error code 126 #59

Open markopoinz opened 6 months ago

markopoinz commented 6 months ago

Hi, we were using this step for a long time and it is very useful.

We started having problems with this once we moved to the node v18 because we updated react native to v73 which requires node >= 18.

Also I can confirm that node v18.16.0 is installed globally in this workflow. See screenshot bellow. I added this step just to be sure it's installed correctly just before we run firebase-app-distribution step.

Screenshot 2024-01-25 at 13 55 24

Workflow is designed to test, build and release the app to app distribution so that our internal testers can check the new release.

After .apk is created we are running firebase-app-distribution step which fails with the error code 126.

Peice of bitrise.yml:

deploy-firebase:
    steps:
    - firebase-app-distribution@0:
        inputs:
        - app: $FIREBASE_APP_ID
        - upgrade_firebase_tools: "true"
        - groups: $FIREBASE_TESTER_GROUPS
        - service_credentials_file: $FIREBASE_SERVICE_ACCOUNT
        - release_notes_file: $RELEASE_NOTES_FILE

Screenshot of the error log: Screenshot 2024-01-25 at 13 42 14

Do you know how can we fix this issue?

guness commented 5 months ago

Here they have mentioned a workaround: https://discuss.bitrise.io/t/m1-error-getting-installed-npm-version-error-running-npm-command-no-preset-version-installed-for-command-npm/22943

Can you please check?