# Updating, nodejs, and other things

**URL:** <https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479>\
**Category:** General\
**Created:** [10 August 2023 22:11 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479 "2023-08-10T22:11:47Z")\
**Posts on this page:** 8\
**Page:** 3

<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:** [14 August 2023 10:43 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479/41 "2023-08-14T10:43:42Z")

</div>

Yes, looks like a bug. Should be `16` as the `else` defaults to `18`

e.g...

```auto
            if [["$NODE_VERSION" == "12"]]; then
                tgtl=$tgtl12
                tgta=$tgta12
            elif [["$NODE_VERSION" == "14"]]; then
                tgtl=$tgtl14
                tgta=$tgta14
            elif [["$NODE_VERSION" == "18"]]; then
                tgtl=$tgtl18
                tgta=$tgta18
            elif [["$NODE_VERSION" == "20"]]; then
                tgtl="None"
                tgta=$tgta20
            else
                tgtl=$tgtl18
                tgta=$tgta18
                NODE_VERSION="18"
            fi

```

Should be

```auto
            if [["$NODE_VERSION" == "12"]]; then
                tgtl=$tgtl12
                tgta=$tgta12
            elif [["$NODE_VERSION" == "14"]]; then
                tgtl=$tgtl14
                tgta=$tgta14
            elif [["$NODE_VERSION" == "16"]]; then
                tgtl=$tgtl16
                tgta=$tgta16
            elif [["$NODE_VERSION" == "20"]]; then
                tgtl="None"
                tgta=$tgta20
            else
                tgtl=$tgtl18
                tgta=$tgta18
                NODE_VERSION="18"
            fi

```

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 August 2023 10:46 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479/42 "2023-08-14T10:46:02Z")

</div>

I suspected that, but am not so .... _arrogant_ to think I was right.

It just didn't look right and as it went: 12, 14, 18, 20.... It was kinda obvious that - somehow - 16 got left out.

But the lines after were also ~~`16`~~ `18` - which I can understand. (edited from 16 to 18)

I just wanted to check.

If it - the script - gets updated, I may try to install 16 on one of the older machines just to see if it does work.

---

<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:** [14 August 2023 12:53 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479/43 "2023-08-14T12:53:48Z")

</div>

> [@Steve-Mcl](#):
>
> Yes, looks like a bug

Will you get it sorted Steve, or should I submit a bug (against what?)?

---

<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:** [14 August 2023 13:01 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479/44 "2023-08-14T13:01:12Z")

</div>

will need an issue raised Colin.

feel free to PR too 😉 🤞

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 August 2023 14:22 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479/45 "2023-08-14T14:22:50Z")

</div>

Already fixed...

---

<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:** [14 August 2023 14:27 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479/46 "2023-08-14T14:27:15Z")

</div>

Excellent, thanks.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [15 August 2023 00:48 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479/47 "2023-08-15T00:48:00Z")

</div>

Just for keeping you _(all)_ in the loop.

Updated the two machines to node v16. Working.

---

<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:** [29 August 2023 00:48 UTC](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479/48 "2023-08-29T00:48:53Z")

</div>

Closed on 29 August 2023 00:48 UTC

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

[Previous page](https://discourse.nodered.org/t/updating-nodejs-and-other-things/80479.md?page=2)
