Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Cannot find module './serviceAccountKey.json' #34

Open
shaikhabbas2609 opened this issue Feb 12, 2020 · 2 comments
Open

Cannot find module './serviceAccountKey.json' #34

shaikhabbas2609 opened this issue Feb 12, 2020 · 2 comments

Comments

@shaikhabbas2609
Copy link

unable to solve this

@dalenguyen
Copy link
Owner

Hi @shaikhabbas2609, have you tried to download your serviceAccount from Firebase?

There a new NPM package. You should try it: https://github.com/dalenguyen/firestore-backup-restore

@kyawzazaw
Copy link

You should download the serviceAccountKey from Firebase. And save it on your machine. (Preferably somewhere near this node.js file you are writing to import/export.)

  1. Go to [Firebase Console].(https://console.firebase.google.com/)
  2. Click on your specific project.
  3. Click on the gear icon besides the text "Project Overview" in the top left corner.
  4. Click "Project Settings" from the options that appear.
  5. On the top-bar, click on "Service Accounts".
  6. In the bottom of that page, there should be a blue colored button "Generate new private key".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants