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

Running firebase CLI commands on Vercel throws: "firebase: command not found" error #11386

Open
gdrose opened this issue Apr 4, 2024 · 0 comments

Comments

@gdrose
Copy link

gdrose commented Apr 4, 2024

We are currently hosting our application on Vercel and encountering an issue when attempting to execute Firebase CLI commands.

When trying to deploy Firestore rules using Firebase CLI within our Vercel environment, we receive the error message: "still stderr: /bin/sh: firebase: command not found". We managed to use the correct PATHs and ENVs:

const firebaseDeploy = spawn(`firebase`, ['deploy', '--only', `firestore`], {
	env: firebaseEnv,
	shell: true,
	cwd: process.cwd()
});

Is it an import issue or something else?

Maybe that simply cannot be done inside a Vercel deployment, who knows? Unfortunately the documentation is really poor and just redirects you to the Vercel CLI project when looking up any keyword regarding this bug, so I'm also opening this question as a repo issue.

Originally posted by @gdrose in #11385

@gdrose gdrose changed the title ### Question Running firebase CLI commands on Vercel throws: "firebase: command not found" error Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant