firebase-cli

Firebase Serve command failing with error 404

…衆ロ難τιáo~ 提交于 2019-11-29 12:59:49
问题 Whenever I run firebase serve on my mac I am getting a 404 error...This has never happened before and I was just using the local dev server maybe 5 minutes before this started happening. I have deleted the firebase.json file and reinitialized it, reinstalled firebase tools but it fails every time. Here are the results from running the command in debug mode. firebase serve --debug [2018-09-11T16:12:25.873Z] ---------------------------------------------------------------------- [2018-09-11T16

ESLint error trying to deploy functions Firebase

大城市里の小女人 提交于 2019-11-29 04:29:17
I'm try to deploy fireabase example , but when I try to deploy it , CLI launches an error: [CODE] const functions = require('firebase-functions'); //to activate firebase functions const admin = require('firebase-admin'); //to active firebase database permissions admin.initializeApp(functions.config().firebase); exports.addMessage = functions.https.onRequest((req, res) => { // [END addMessageTrigger] // Grab the text parameter. const original = req.query.text; // [START adminSdkPush] // Push the new message into the Realtime Database using the Firebase Admin SDK. admin.database().ref('/messages

I am not able to move the arrow keys or even select the default project while installing the firebase in mac

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 14:46:47
I was installing firebase for Mac after firebase init command selected firebase and cli features like Databas,Hosting After pressing enter the terminal asked for project setup but here I am not able to select, enter to not even able to move the arrow keys I tried closing the terminal and then follow same installation and configuration process but getting stuck at the same step === Project Setup First, let's associate this project directory with a Firebase project. You can create multiple project aliases by running firebase use --add, but for now we'll just set up a default project. ? Select a

Google cloud built not substituting environment variable for firebase token

為{幸葍}努か 提交于 2019-11-28 02:23:57
I have a cloud build trigger that attempts to push my application to firebase hosting. To do that I have an encrypted .env.enc file that contains the firebase token needed to deploy. During my build I decrypt this file and attempt to deploy but am met with an unauthorised message. I tried hard coding the token in my deployment script instead of using the environment variable and it deploys fine. Here is my cloudbuild.yaml steps: - name: gcr.io/cloud-builders/gcloud args: - kms - decrypt - --ciphertext-file=.env.enc - --plaintext-file=.env - --location=global - --keyring=ssr-vue-docker-app - -

Firebase deploy errors starting with non-zero exit code (space in project path)

点点圈 提交于 2019-11-27 20:07:50
I was having issues with firebase deploy command recently. After firebase deploy command all others were being deployed except firebase (storage, database etc) So I decided to reinstall firebase to fix this situation but after reinstall my problem got bigger. Now none of them are deployed with the following error: i deploying database, functions Running command: npm --prefix $RESOURCE_DIR run lint npm ERR! path C:\Users\faruk\Google Drive\Android\firebase\1\$RESOURCE_DIR\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or

Google cloud built not substituting environment variable for firebase token

狂风中的少年 提交于 2019-11-27 04:56:04
问题 I have a cloud build trigger that attempts to push my application to firebase hosting. To do that I have an encrypted .env.enc file that contains the firebase token needed to deploy. During my build I decrypt this file and attempt to deploy but am met with an unauthorised message. I tried hard coding the token in my deployment script instead of using the environment variable and it deploys fine. Here is my cloudbuild.yaml steps: - name: gcr.io/cloud-builders/gcloud args: - kms - decrypt - -

Firebase deploy errors starting with non-zero exit code (space in project path)

旧街凉风 提交于 2019-11-26 20:11:33
问题 I was having issues with firebase deploy command recently. After firebase deploy command all others were being deployed except firebase (storage, database etc) So I decided to reinstall firebase to fix this situation but after reinstall my problem got bigger. Now none of them are deployed with the following error: i deploying database, functions Running command: npm --prefix $RESOURCE_DIR run lint npm ERR! path C:\Users\faruk\Google Drive\Android\firebase\1\$RESOURCE_DIR\package.json npm ERR!

Cloud Functions deploy error during lint on Windows: “enoent ENOENT: no such file or directory”

左心房为你撑大大i 提交于 2019-11-26 17:50:55
Following the firebase function getting started guide and getting a seemingly simple error once trying to deploy with: firebase deploy --only functions i deploying functions Running command: npm --prefix $RESOURCE_DIR run lint npm ERR! path C:\Users\Beat\leginformant\$RESOURCE_DIR\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Beat\leginformant\$RESOURCE_DIR\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent The package.json file does exist just as

Cloud Functions deploy error during lint on Windows: “enoent ENOENT: no such file or directory”

故事扮演 提交于 2019-11-26 05:37:40
问题 Following the firebase function getting started guide and getting a seemingly simple error once trying to deploy with: firebase deploy --only functions i deploying functions Running command: npm --prefix $RESOURCE_DIR run lint npm ERR! path C:\\Users\\Beat\\leginformant\\$RESOURCE_DIR\\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open \'C:\\Users\\Beat\\leginformant\\$RESOURCE_DIR\\package.json\' npm ERR!