title: Importing a firebase collection into BigQuery using fs-bq-import-collection fails
body: <p>I have installed the new BigQuery export firebase extension on my firestore database and it works great.</p>
  
  <p>Now I am trying to import the existing data in the collection by following the instructions on the extension but getting the error below.</p>
  
  <p><a href="https://github.com/firebase/extensions/blob/master/firestore-bigquery-export/guides/IMPORT_EXISTING_DOCUMENTS.md" rel="nofollow noreferrer">https://github.com/firebase/extensions/blob/master/firestore-bigquery-export/guides/IMPORT_EXISTING_DOCUMENTS.md</a></p>
  
  <p><strong>Any ideas how to resolve this error?</strong></p>
  
  <p>Note: I ran <code>gcloud components update</code> to update to the latest gcloud versions</p>
  
  <pre><code>npx @firebaseextensions/fs-bq-import-collection
  </code></pre>
  
  <pre><code>Importing data from Cloud Firestore Collection: members, to BigQuery Dataset: qmtbc_dev_export, Table: members_raw_changelog
  Error unlinking journal file C:\Users\fullo\AppData\Roaming\npm-cache\_npx\10884\node_modules\@firebaseextensions\fs-bq-import-collection\lib/from-members-to-qmtbc-dev:qmtbc_dev_export:members_raw_changelog
  after successful import: Error: ENOENT: no such file or directory, unlink 'C:\Users\fullo\AppData\Roaming\npm-cache\_npx\10884\node_modules\@firebaseextensions\fs-bq-import-collection\lib\from-members-to-qmtbc-dev:qmtbc_dev_export:members_raw_changelog'
  ---------------------------------------------------------
  Finished importing 0 Firestore rows to BigQuery
  ---------------------------------------------------------
  Error importing Collection to BigQuery: Error: EPERM: operation not permitted, unlink 'C:\Users\fullo\AppData\Roaming\npm-cache\_npx\10884\node_modules\@firebaseextensions\fs-bq-import-collection\node_modules\grpc\src\node\extension_binary\node-v64-win32-x64-unknown\grpc_node.node'
  </code></pre>
  
  <p><strong>Update 1:</strong></p>
  
  <p>I have been stuck on this for over 24hrs now.<br>
  I have reinstalled nodejs to v12.13 and killed my virus checker, rebooted etc
  No luck.
  Also tried npm rebuild</p>
  
  <p>The closest issues I have seen are:
  <a href="https://github.com/phoenixframework/phoenix/issues/2464#issuecomment-325497850" rel="nofollow noreferrer">https://github.com/phoenixframework/phoenix/issues/2464#issuecomment-325497850</a>
  <a href="https://github.com/phoenixframework/phoenix/issues/2464#issuecomment-328853460" rel="nofollow noreferrer">https://github.com/phoenixframework/phoenix/issues/2464#issuecomment-328853460</a></p>
  
  <p><strong>Update 2:</strong></p>
  
  <p>I have uninstalled node and tried versions 8.16.2, 10.17 and 12.13
  I deleted my npm and npm cache folders and reinstalled my global node packages.
  Still no luck.  I may try this method instead: <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-firestore" rel="nofollow noreferrer">https://cloud.google.com/bigquery/docs/loading-data-cloud-firestore</a></p>
  
  <p><strong>Update 3:</strong></p>
  
  <p>I have given up.  It would be good to know if this script actually works for others.</p>