How do I "Please specify these environment variables: GCLOUD_PROJECT FIREBASE_EMULATOR_HUB"?
See original GitHub issueUpon 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:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Closing since this is actually an issue with firebase-tools and the fix has been merged to master there.
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 throughnpm
).