firebase-tools

Error deploying Angular application on Firebase

只谈情不闲聊 提交于 2019-12-24 12:16:25
问题 I tried deploying my angular 4 application on firebase but the setup did not ask me for any configuration as mentioned here: https://alligator.io/angular/deploying-angular-app-to-firebase/ and many similar answers on stack. Out of following 5 steps that firebase cli runs through on running firebase init , I was only asked for step1 and not for others. Firebase CLI features…: Hosting. Database rules file: You can keep that default file name that they provide, or change it if you prefer. This

firebase-tools cannot install, why?

徘徊边缘 提交于 2019-12-24 06:59:11
问题 I cannot install firebase-tools on my mac machine. firebase-tools error, and after install , firebase init error I searched this problem, but I can't find solution i reinstalled node, firebase, node-pre-gyp....etc. > sudo npm install -g firebase-tools npm WARN deprecated node-uuid@1.4.8: Use uuid module instead /usr/local/bin/firebase -> /usr/local/lib/node_modules/firebase-tools/bin/firebase > node-zopfli@1.4.0 install /usr/local/lib/node_modules/firebase-tools/node_modules/node-zopfli >

Firestore/Firebase Emulator Not Running

て烟熏妆下的殇ゞ 提交于 2019-12-23 07:57:52
问题 I'm trying to test my functions locally using the guide listed here https://firebase.google.com/docs/functions/local-emulator I have installed the latest firebase-tools using npm install -g firebase-tools In my package.json I confirmed to be running "firebase-admin": "^7.3.0", "firebase-functions": "^2.3.1", When I try to run my functions using firebase emulators:start It gives me the below output. What am I doing wrong? Starting emulators: ["functions"] ⚠ Your requested "node" version "8"

Firebase CLI deploy functions - Error: Failed to initialize a region

最后都变了- 提交于 2019-12-22 04:58:28
问题 I'm having trouble doing firebase deploy --only functions for an app on Blaze plan. I have the latest firebase-tools CLI (v 3.5.0). I get the following error: === Deploying to 'myapp1234'... i deploying functions i functions: ensuring necessary APIs are enabled... i runtimeconfig: ensuring necessary APIs are enabled... ✔ runtimeconfig: all necessary APIs are enabled ✔ functions: all necessary APIs are enabled i functions: preparing functions directory for uploading... i functions: packaged

Firebase CLI deploy functions - Error: Failed to initialize a region

匆匆过客 提交于 2019-12-22 04:58:09
问题 I'm having trouble doing firebase deploy --only functions for an app on Blaze plan. I have the latest firebase-tools CLI (v 3.5.0). I get the following error: === Deploying to 'myapp1234'... i deploying functions i functions: ensuring necessary APIs are enabled... i runtimeconfig: ensuring necessary APIs are enabled... ✔ runtimeconfig: all necessary APIs are enabled ✔ functions: all necessary APIs are enabled i functions: preparing functions directory for uploading... i functions: packaged

firebase CLI will not recognize current directory for 'firebase init'

▼魔方 西西 提交于 2019-12-22 00:29:48
问题 I am following a tutorial on Ionic Angular and it has come to the point where the instructor is having me publish my code to Firebase Hosting. First I used NPM to install the Firebase CLI. Then I was instructed to use the firebase init command. The issue is that the CLI doesn't seem to recognize the current directory that is selected in my terminal. I run: cd /Users/MyUserName/myProjectsFolder/myProject/ Then I run firebase init and it displays: You're about to initialize a Firebase project

Firebase Cloud Functions: Import Environment Configurations from File?

邮差的信 提交于 2019-12-21 18:03:20
问题 According to Firebase documentation, environment configs can be set by running the command: firebase functions:config:set someservice.key="THE API KEY" someservice.id="THE CLIENT ID" However, I am wondering is there a way to import environment configs from a file e.g. from a JSON file configs.json : firebase functions:config:set configs.json 来源: https://stackoverflow.com/questions/45098388/firebase-cloud-functions-import-environment-configurations-from-file

Firebase Cloud Functions: Import Environment Configurations from File?

时间秒杀一切 提交于 2019-12-21 18:03:12
问题 According to Firebase documentation, environment configs can be set by running the command: firebase functions:config:set someservice.key="THE API KEY" someservice.id="THE CLIENT ID" However, I am wondering is there a way to import environment configs from a file e.g. from a JSON file configs.json : firebase functions:config:set configs.json 来源: https://stackoverflow.com/questions/45098388/firebase-cloud-functions-import-environment-configurations-from-file

Firebase serve error: Port 5000 is not open. Could not start functions emulator

隐身守侯 提交于 2019-12-21 03:36:17
问题 I'm trying to serve firebase functions locally, but when I run firebase serve or firebase emulators:start the error message is: "Port 5000 is not open, could not start functions emulator." I'm using Windows 10, so I've tried to change the port number, check if the port is blocked by Firewall and I create a new rule in Firewall to ports 5000-5010 but none of this approaches worked for me. 回答1: A similiar problem has recently been reported in the official github repo: https://github.com

npm ERR! asyncWrite is not a function

狂风中的少年 提交于 2019-12-20 15:47:13
问题 npm install -g firebase-tools npm ERR! asyncWrite is not a function npm ERR! pna.nextTick is not a function npm ERR! A complete log of this run can be found in: npm ERR! /home/developer/.npm/_logs/2018-05-30T05_42_20_569Z-debug.log .log data /home/developer/.npm/_logs/2018-05-30T05_42_20_569Z-debug.log0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli '-g', 1 verbose cli 'firebase-tools' ] 2