codediodeio / firestore-migrator

:bullettrain_side: A CLI utility for moving data to and from Cloud Firestore
https://angularfirebase.com/lessons/import-csv-json-or-excel-to-firestore/
317 stars 94 forks source link

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #50

Open uncloak opened 3 years ago

uncloak commented 3 years ago

Hi,

I build successfully after install, update, then link, and bin starts ok. The file I load is a 1Gb CSV.

I get that error in the stacktrace: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I've tried to modify the package.json

  "scripts": {
    "build": "node --max-old-space-size=8192 node_modules/typescript/bin/tsc",
    "build-link": "node --max-old-space-size=8192 node_modules/typescript/bin/tsc && npm link",
    "migrate": "node --max-old-space-size=8192 dist/index.js"
  },

But no success. Any idea where I should modify the max old space size ?