Closed
Description
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 commentedon Feb 20, 2023
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 commentedon Feb 28, 2023
I got the same error trying to deploy any cloud functions using Node.js 18.
Using Node.js 16 fixed the problem.
jasonc624 commentedon Apr 13, 2023
"firebase-tools": "^11.18.0", and Node 16 but still doesnt work for me.