dalenguyen / firestore-import-export

An application that can help you to backup and restore from Cloud Firestore | Firebase
https://www.npmjs.com/package/firestore-export-import
401 stars 109 forks source link

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

Open shaikhabbas2609 opened 4 years ago

shaikhabbas2609 commented 4 years ago

unable to solve this

dalenguyen commented 4 years ago

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 commented 4 years ago

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".