I'm having a problem with the flutterfire configure command. I keep getting this error:
i try this
2: FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command and this enter link description here
and i did firebase logout then firebase login and this error is still the same what should i do?
I faced the same error: in my case it was just the outdated version of Node.js.
Updating Node to a version greater or equal than 14.8.0 solved the problem. Download the latest stable version from Node website for Windows or run
npm install -n g
for MacOs and Linux.
Related
Hi wonderful people of stackoverflow!
Background
I have an Angular 9 application and CI set up with Codeship. This has been running fine until about two weeks ago when suddenly it stopped working after I upgraded from Angular 7.
Set up commands:
nvm ls
nvm install v10.15.1
nvm use v10.15.1
gem install rb-inotify -v 0.9.10
gem install sass
npm install -g firebase-tools#6.12.0
npm i firebase-functions#3.3.0
yes | npm install -g #angular/cli#9.1.12
npm i
cd functions
nvm use v10.15.1
npm i
cd ..
Which runs as expected. I have checked the versions in the CI environment with npm outdated, which show me that the correct versions are being installed the same as local:
Deploy script:
firebase use default
firebase functions:config:set test="test" --token "$FIREBASE_TOKEN"
firebase deploy --token "$FIREBASE_TOKEN"
Error:
firebase use default is successful, but firebase functions:config:set test="test" --token "$FIREBASE_TOKEN" now returns:
Error: HTTP Error: 404, Method not found.
Notes:
I've reset up the $FIREBASE_TOKEN with the new cli and can confirm that this probably isn't the issue, because when the token is incorrect (I removed the last character from the TOKEN), it throws a different error stating this.
I can also confirm that the same script run locally works and deploys just fine - so while I can get around the problem this way, it isn't an ideal or long term solution.
Any ideas or help would be genuinely appreciated as I'm somewhat lost as to what to do next?
This seems to be related with firebase-tools version. When I installed the same version as you have (6.12.0) I got the same error.
I have tried on new version (I have 8.7.0) and it is working fine with one more remark. When I tried exactly the same command as you have error:
Error: Invalid argument, each config value must have a 2-part key (e.g. foo.bar).
So working command will be like this:
firebase functions:config:set test.test="test"
If you need old version of firebase-tools I tested few other versions and it seems that this is working since version 7.1.0.
For anyone else having this issue - I never managed to solved this sorry. However I migrated my CI over to use GitHub Actions easily and it all works without any issue.
I'm having a hard time with firebase CLI,when I install it with npm, either locally in a projet or globally, and I call the command firebase it gives Segmentation fault with no further details.
I firs thought that the problem was with my version of Node since I was using 9.x, I moved back to 8.x versions, and reinstalled firebase with no success, I upgraded to 12.x, with no success too always same error.
I'm using NVM to handle my node versions properly, but still I can't find a fix for this problem.
nvm list gives this :
-> v8.11.3
v8.13.0
v12.3.0
system
When I run npm list firebase-tools it gives firebase-tools#7.9.0, I also tried uninstalling and reinstalling with no success .
I am trying to run a "firebase init functions" in android studio terminal but it is showing firebase command not found. I have also checked in google but unfortunately did not find any related question or answer.
Seems like you haven't installed firebase tools .to do so type this in your terminal
First install node js from nodejs.org
npm install -g firebase-tools
Now you can login using firebase login and after login you can now run firebase init
I am trying to update firebase to the lastest version and encountered an error. That pointed me to the functions-emulator having an issue:
$ npm install #google-cloud/functions-emulator
npm ERR! Unexpected end of JSON input while parsing near '..."retry-request":"^4.0'
This happens after the recent update on firebase. Am I doing something wrong or is this bug I should report?
Tried multiple solutions including a complete de-install of npm, node and even vsc. Updating npm, trying to install the cloud functions emulator specifically...always the same error in some dependency file.
Here's the error log
88 error Unexpected end of JSON input while parsing near '..."retry-request":"^4.0'
I was just looking to update firebase to the latest version. Now everything is broken :D
Any help is much appreciated.
Error occurred due to a corrupted file download (tried installing a firebase update on the train).
Solved with:
npm cache clean --force
Then re-installed package.
After completing https://codelabs.developers.google.com/codelabs/flutter-firebase/#5 these code lab steps successfully. I tried to run the app. But it is stuck in the ‘pod install’ command. When I try to find the error opening the workspace in Xcode and attempted to run from there and I found a error message. It says the Cloud Firestore Plugin.h missing?
pls See the attached screenshot.
Remove Podfile.lock open command line tool and navigate to iOS folder of your flutter app.
Run pod install from command line tool. Verify all the pods are installed successfully.
Hope this helps!