question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I "Please specify these environment variables: GCLOUD_PROJECT FIREBASE_EMULATOR_HUB"?

See original GitHub issue

Upon trying to run:

firebase emulators:exec --project sample --only database,firestore 'npm start'

I get:

...
i  Running script: npm start

> firebase-tools-ui@0.1.0 start /mnt/c/Users/varunarora/Code/firebaseui/firebase-tools-ui
> react-scripts start

Please specify these environment variables: GCLOUD_PROJECT FIREBASE_EMULATOR_HUB
(Are you using firebase-tools@>=7.14.0 with `--project your-project`?)

I just installed firebase-tools, so got version 7.15.0. Do I need to install a lower version?

I tried to export the env vars to values EMULATOR_HUB_ENV="FIREBASE_EMULATOR_HUB" and GCLOUD_PROJECT="sample" to no avail (unless there is a fancier node way to set these variables so they are picked up by react-scripts start).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yuchenshicommented, Mar 19, 2020

Closing since this is actually an issue with firebase-tools and the fix has been merged to master there.

1reaction
yuchenshicommented, Mar 13, 2020

Oh and by the way, please use the latest firebase-tools for this project. Try this before the debugging steps above: npm install -g firebase-tools@latest (if you installed it through npm).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Environment Variables | Cloud Functions Documentation
Open the Runtime, build and connections settings section. Select the Runtime tab. In the Runtime environment variables section, click Add variable and add...
Read more >
Configure your environment | Cloud Functions for Firebase
With this approach, you manually create a dotenv file for loading environment variables. Runtime environment configuration with the Firebase CLI and functions.
Read more >
Environment variables - AWS Amplify Hosting
Sign in to the AWS Management Console and open the Amplify console . · In the Amplify console, choose App Settings, and then...
Read more >
Environment Variables – Vercel Docs
Then, enter the desired Value for your Environment Variable. The value is encrypted at rest so it is safe to add sensitive data...
Read more >
Environment Variables - Travis CI Docs
Defining Multiple Variables per Item #. If you need to specify several environment variables for each build, put them all on the same...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found