firebase-tools

How to login to `firebase-tools` on headless remote server?

人盡茶涼 提交于 2019-12-04 04:03:23
I am attempting to use firebase-tools on a remote Linux server via Putty. There is no desktop running on this server. When I run firebase login , I'm presented with a long url that I need to copy/paste into any other device's browser: https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxxxxxx.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=3kkd93kl&redirect_uri=http%3A%2F

Can't deploy project to firebase

杀马特。学长 韩版系。学妹 提交于 2019-12-03 13:02:11
问题 I try to deploy my app to firebase but it's fail. $ firebase deploy --project af2test ⚠ Your CLI authentication needs to be updated to take advantage of new features. ⚠ Please run firebase login --reauth Error: Unable to authorize access to project af2test Note: This version of the Firebase CLI is only compatible with projects upgraded to the new Firebase Console. To access firebase.com apps, you will need to use a previous version: npm install -g firebase-tools@^2.1 To access the Firebase

firebase version is not updating through <npm install -g firebase-tools>

人走茶凉 提交于 2019-12-03 11:43:19
问题 i am windows user and trying to update firebase version using npm install -g firebase-tools but when i run firebase --version it shows the same version. I also run npm uninstall firebase --save and check firebase --version it shows same. what should i do to update my firebase version? 回答1: npm update -g firebase-tools or npm install -g firebase-tools@3.12.0 to install a specific version And make sure to restart your terminal/IDE otherwise, it won't take effect. 回答2: Have you tried npm update

How to set hash-key option for auth:import after default auth:export in firebase?

那年仲夏 提交于 2019-12-03 10:35:27
I've got my users exported the in CLI: firebase auth:export my_users.json The passwords in the exported file should be hashed with SCRYPT, because as the documentation states: auth:export command only exports passwords hashed using the scrypt algorithm, which is used by the Firebase backend. Account records with passwords hashed using other algorithms are exported with empty passwordHash and salt fields. Projects might have passwords hashed with other algorithms after importing user records from a file, since passwords are only re-hashed with scrypt when an imported user signs in for the first

How to use Firebase-tools on Windows?

霸气de小男生 提交于 2019-12-03 09:07:01
I want to get started with firebase on a Windows machine but I don't understand the getting started instructions on https://www.firebase.com/docs/web/quickstart.html . I created a .html file with the following content (copied from the instruction on that page). That works, info is added to the database and retrieved from the database. However I'm lost on Linux like instructions like $ npm install -g firebase-tools on that page. I installed nodejs following the link to nodejs.org on https://www.firebase.com/docs/hosting/quickstart.html If I execute the above command (without the linux $-prompt)

npm ERR! asyncWrite is not a function

眉间皱痕 提交于 2019-12-03 04:12:11
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 info using npm@6.1.0 3 info using node@v10.3.0 4 verbose npm-session 4ca1ad6ed9bde18f 5 silly install

firebase version is not updating through <npm install -g firebase-tools>

大兔子大兔子 提交于 2019-12-03 02:09:24
i am windows user and trying to update firebase version using npm install -g firebase-tools but when i run firebase --version it shows the same version. I also run npm uninstall firebase --save and check firebase --version it shows same. what should i do to update my firebase version? Alan npm update -g firebase-tools or npm install -g firebase-tools@3.12.0 to install a specific version And make sure to restart your terminal/IDE otherwise, it won't take effect. Have you tried npm update -g firebase-tools ? This worked for me. For other like me stumbling in with a weird version mismatch: When I

how to end ng serve or firebase serve

风格不统一 提交于 2019-12-02 14:24:46
I've been doing web development with Angular2 and have been using both Angular2 and Firebase to run local servers. I haven't been able to find a command similar to typing quit when using Ionic to create a server, so I have to close the terminal tab each time. Is there a way to end the server and get my terminal tab back? Thanks. stijn.aerts You can use the following command to end an ongoing process: ctrl + c Paulo Cunha Try using ctrl + c twice to get the prompt for terminating the batch job. If ctrl + c doesn't work use this: ctrl + shift + c Sometimes people change the behaviour of ctrl + c

firebase-tools error: EACCES: permission denied

给你一囗甜甜゛ 提交于 2019-12-01 12:25:03
I am trying to deploy Firebase hosting of my web app. At the command line, when I type firebase deploy , I get the following error. Note: firebase deploy is just one example. The same error occurs for all firebase commands. (e.g., firebase --help , firebase -v , firebase login , firebase logout , etc.) Error /usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:53 throw err; ^ Error: EACCES: permission denied, open '/Users/mowzer/.config/configstore/update-notifier-firebase-tools.json' You don't have access to this file. at Error (native) at Object.fs.openSync (fs.js:549

How do I deploy Firebase Database Security rules using the command line?

家住魔仙堡 提交于 2019-11-30 02:48:42
In older versions of Firebase, we could add a rules section to our firebase.json file, and upload new security rules on every deploy. How do we use the firebase-tools v3 command-line tools to deploy database security rules? This page says that it's possible: "Rules for Firebase Storage" This page hints that the command line tools can do it, but firebase --help and firebase deploy --help don't seem to hint at how to do it? (Apologies if I missed it...) (related: where is the canonical doc for everything that can go into firebase.json ? I found it on the old Firebase site, but can't find it via