# Question about npm Install

**URL:** <https://discourse.nodered.org/t/question-about-npm-install/53760>\
**Category:** General\
**Created:** [15 November 2021 10:51 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760 "2021-11-15T10:51:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [15 November 2021 10:51 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/1 "2021-11-15T10:51:25Z")

</div>

Hi,  
I asked some time ago for installing _node-red-contrib-nibepi 1.1.1_ under Node.JS 14 or 16.

```auto
npm install --save anerdins/node-red-contrib-nibepi#master

```

[Link](https://github.com/anerdins/node-red-contrib-nibepi)

Node.JS 12 will expire soon and the nibepi can´t be installed with JS 14 or 16.

Is there anybody who has a test system and can tell me where is the problem with Node JS 14 / 16 ?  
Maybe there is a simple solution (rights management).

Mr. Anerdin does not answere 😩

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 November 2021 11:11 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/2 "2021-11-15T11:11:23Z")

</div>

> [@Becker](#):
>
> the nibepi can´t be installed with JS 14 or 16.

How do you know? If you do know that then why do you need someone to try?

I can confirm that the git version will not install with nodjs 16. The node needs updating. I suggest opening an issue on the node.

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [15 November 2021 12:50 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/3 "2021-11-15T12:50:14Z")

</div>

I tried it some time ago.

> [@Colin](#):
>
> I can confirm that the git version will not install with nodjs 16. The node needs updating. I suggest opening an issue on the node.

did I understand correctly that there is nothing I can do to install it somehow?

is manually installing possible ?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 November 2021 13:38 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/4 "2021-11-15T13:38:08Z")

</div>

> [@Becker](#):
>
> there is nothing I can do to install it somehow?
> 
> is manually installing possible ?

No, running npm install _is_ manually installing it.  
The alternative is to fork the repository and fix the code so that it does compile. Either do that yourself, or if you are a commercial organisation, then hire someone to do it. For someone with the correct experience it is may be only few hours work.

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [15 November 2021 13:42 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/5 "2021-11-15T13:42:17Z")

</div>

🤪 i´m no commercial organisation 🤣  
ok, I think I have to leave one RPi wih Node JS 12 4 ever with NibePi.

Do you know what is the easiest way to exchange values between 2 NodeRed (RPi) my lan ?

I will install a 2nd Node-Red with Node JS 16 for my other flows.

---

<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:** [15 November 2021 13:56 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/6 "2021-11-15T13:56:27Z")

</div>

> [@Becker](#):
>
> Do you know what is the easiest way to exchange values between 2 NodeRed (RPi) my lan

Easiest might be add http endpoint in new node-red & call it from old node-red but a better solution would be to communicate via MQTT

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 November 2021 14:05 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/7 "2021-11-15T14:05:54Z")

</div>

V12 is not out of support for another six months, and will continue to work, if you don't need to add major new features to it, for years after that. Node red has only just removed support for nodejs version 8.

Personally I would say the MQTT is easier than using http endpoints.

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [15 November 2021 14:54 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/8 "2021-11-15T14:54:48Z")

</div>

@Steve-Mcl you´ve shown me a year ago a nice Node JS 14 feature with rounding and replacing . -\> ,  
something like ".. to location german".  
Do you remember? I don´t find it.

it would replace:

```auto
msg.payload = msg.payload.toFixed(2).replace('.', ',');

```

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [15 November 2021 16:20 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/9 "2021-11-15T16:20:44Z")

</div>

Was it this JS method ?

> **[Number.prototype.toLocaleString() - JavaScript | MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString#using_locales)**
>
> The toLocaleString() method returns a string with a
> language-sensitive representation of this number.

---

<div class="post-metadata">

**Author:** ![Becker](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Becker](https://discourse.nodered.org/u/Becker)\
**Post date:** [15 November 2021 18:51 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/10 "2021-11-15T18:51:06Z")

</div>

thank you, so I found Steve´s answere:

> There is i18n formatting for angular but I dont think it is included with dashboard.

> Anyhow, if you are using NODE -v 14 or greater, you can use...  
> `number.toLocaleString("de-DE", {minimumFractionDigits: 2});`

> e.g...

```auto
var n = Number(msg.payload.BattEnt) / 1000;
msg.payload = n.toLocaleString("de-DE", {minimumFractionDigits: 2}));

```

> however, any US or English folk will be very confused

---

<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:** [14 January 2022 18:51 UTC](https://discourse.nodered.org/t/question-about-npm-install/53760/11 "2022-01-14T18:51:13Z")

</div>

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