# Attempting to install "firebase" NPM package in function node

**URL:** <https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348>\
**Category:** General\
**Tags:** function-node, flowfuse\
**Created:** [19 April 2024 16:17 UTC](https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348 "2024-04-19T16:17:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![grodgers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grodgers/32/79982_2.png) [@grodgers](https://discourse.nodered.org/u/grodgers)\
**Post date:** [19 April 2024 16:17 UTC](https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348/1 "2024-04-19T16:17:54Z")

</div>

I'm attempting to install the `firebase` package in a function node in my FlowFuse instance (the existing node-red-contrib-firebase palette is too old), but I'm getting the following error message:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/2/32919eadc57472d08da5fa56aff626e35334ac16.png)

I've done some research on the `npm WARN config production Use --omit=dev instead` error message, and have tried setting `NPM_CONFIG_PRODUCTION=true` as a potential fix.

Has anyone tried using this package or found a solution to a similar error message?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 April 2024 17:27 UTC](https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348/2 "2024-04-19T17:27:24Z")

</div>

Before the DIY route, did you check out any of the other firebase nodes?

there are ~17 nodes shoring up for a [firebase search](https://flows.nodered.org/search?term=firebase&type=node) some of them updated only 2 weeks ago.

* * *

regarding your issue, where is your FlowFuse instance running (cloud, own installation, other?) and are you using the localfs/dockerk8s driver?

---

<div class="post-metadata">

**Author:** ![grodgers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grodgers/32/79982_2.png) [@grodgers](https://discourse.nodered.org/u/grodgers)\
**Post date:** [19 April 2024 18:10 UTC](https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348/3 "2024-04-19T18:10:27Z")

</div>

I did look through the other node options for firebase. Unfortunately, they're either too specific for realtime database, firestore, messaging, etc, or just too old.

Our FlowFuse instance is running in the cloud, and we're not using any drivers.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 April 2024 18:27 UTC](https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348/4 "2024-04-19T18:27:15Z")

</div>

Ok, thanks.

I did try installing that myself and it failed on cloud (potentially it (or a dependency) has a compilation step)

I also installed locally (on an application device) and it did install however it seems to have no usable exports so is entirely unusable as is.

Which of the firestore nodes did you consider using (but was too old)? Perhaps the author would be willing to update them?

---

<div class="post-metadata">

**Author:** ![grodgers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/grodgers/32/79982_2.png) [@grodgers](https://discourse.nodered.org/u/grodgers)\
**Post date:** [19 April 2024 18:42 UTC](https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348/5 "2024-04-19T18:42:56Z")

</div>

Bummer - I appreciate you attempting to install and use it, though!

Given that the firebase team has made so many changes over time, I didn't really consider anything older than a year. I can go back and look closer to see what capabilities they have.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [19 April 2024 18:48 UTC](https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348/6 "2024-04-19T18:48:35Z")

</div>

This node : [node-red-contrib-firebase-realtime-database (node) - Node-RED](https://flows.nodered.org/node/@gogovega/node-red-contrib-firebase-realtime-database)

Is by a dear member who I am involved with in various communities.

@gogovega -Your welcome 😉

(and getting you back for the ZWave plugs/pings 😀 )

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 July 2024 18:48 UTC](https://discourse.nodered.org/t/attempting-to-install-firebase-npm-package-in-function-node/87348/7 "2024-07-18T18:48:42Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
