Skip to content

Not possible to run a recursive delete function using 'firebase-tools' like in the suggested solution #341

Closed
@Hibrix-net

Description

@Hibrix-net

Hi,

It is not possible to deploy a cloud function running a similar code as here: https://github.com/firebase/snippets-node/tree/master/firestore/solution-deletes

Whenever the 'firebase-tools' package is required from the cloud functions context the following error is thrown during the deployment:
Error: ENOENT: no such file or directory, mkdir '/www-data-home/.config/configstore'

However, if testing locally with the firebase function emulator the same code works without problems.

Could you please help me deploy my code?

Kind regards,

Activity

Hibrix-net

Hibrix-net commented on Feb 20, 2023

@Hibrix-net
Author

As an update: A Google engineer suggested me to downgrade the Node engine for functions to v 16 instead of 18 so by now everything works well but still a correction/upgrade is needed. Is anybody taking care of this?

lboatto

lboatto commented on Feb 28, 2023

@lboatto

I got the same error trying to deploy any cloud functions using Node.js 18.

Using Node.js 16 fixed the problem.

jasonc624

jasonc624 commented on Apr 13, 2023

@jasonc624

"firebase-tools": "^11.18.0", and Node 16 but still doesnt work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jasonc624@lboatto@Hibrix-net

        Issue actions

          Not possible to run a recursive delete function using 'firebase-tools' like in the suggested solution · Issue #341 · firebase/snippets-node