Skip to content

Firebase-basics skill fails in Android Studio - Firebase CLI can't run due to lack of npx/node.js #148

Description

@tjohns

The firebase-basics skill ships with newer versions of Android Studio. However, there is no guarantee that a Node.js environment will be present. (For example, MacOS does not ship with Node.js.)

This causes a poor user experience when the skill fails to run Firebase CLI.

Steps to Reproduce

  1. Run a Gemini in Android Studio session on a Mac, using the the latest Android Studio build. (Ensure node.js/npx hasn't been installed by an external process.)
  2. Trigger the 'firebase-basics' skill; for example, by asking to migrate the app to use Firestore.
  3. The agent will attempt to invoke Firebase CLI (for example, invoking 'npx -y firebase-tools@latest apps:sdkconfig').

Expected Result

The assistant should be able to execute Firebase CLI using an environment a stock MacOS environment, or utilities bundled with Android Studio.

Actual Result

The tool exits with: "exec: 'npx': executable file not found in $PATH" (Exit Code 127).

Suggested Mitigation

Modify the 'firebase-basics' skill to guide the user through installing npx/node.js using Homebrew (if installed), or direct download.

Alternatively, use the Firebase CLI automatic install script from https://firebase.tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions