# How to revert Node from 20 to 18

**URL:** <https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323>\
**Category:** General\
**Created:** [25 October 2023 09:01 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323 "2023-10-25T09:01:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanH](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ianh/32/95002_2.png) [@IanH](https://discourse.nodered.org/u/IanH)\
**Post date:** [25 October 2023 09:01 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323/1 "2023-10-25T09:01:40Z")

</div>

NR 3.1.0  
Node 20.8.1  
Raspberry Pi 3B, running Bullseye (just performed full update)  
Just updated as above and now node-red-contrib-telegrambot is no longer working (See GIT issue [343](https://github.com/windkh/node-red-contrib-telegrambot/issues/343). I have tried to back the that node to 15.1.6 and also reinstall that node etc but no effect.  
Next I want revert NODE from version 20.8.1 back to version 18.x.x but unsure how to do that as Node-red and nodes seem to be 'configured' to Node.  
Can I just run the raspi install script with the tag --node18 (Noting when I upgraded --node20 failed! so I manually updated)  
Thanks

---

<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:** [25 October 2023 09:44 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323/2 "2023-10-25T09:44:06Z")

</div>

Yes - that should do it. You will also need to go into your ~/.node-red user dir and run `npm rebuild` afterwards so ensure any binaries are rebuilt against node18.

---

<div class="post-metadata">

**Author:** ![IanH](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ianh/32/95002_2.png) [@IanH](https://discourse.nodered.org/u/IanH)\
**Post date:** [25 October 2023 10:30 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323/3 "2023-10-25T10:30:55Z")

</div>

Thanks @dceejay i wondered how that would be sorted.

Ian

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [25 October 2023 12:29 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323/4 "2023-10-25T12:29:28Z")

</div>

You should also raise an issue against that node because Node.js v20 moves to LTS this month if it hasn't already.

---

<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:** [25 October 2023 15:23 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323/5 "2023-10-25T15:23:22Z")

</div>

> [@dceejay](#):
>
> You will also need to go into your ~/.node-red user dir and run `npm rebuild` afterwards so ensure any binaries are rebuilt against node18

Doesn't the script do that automatically if it installs nodejs?

---

<div class="post-metadata">

**Author:** ![IanH](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ianh/32/95002_2.png) [@IanH](https://discourse.nodered.org/u/IanH)\
**Post date:** [26 October 2023 08:00 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323/6 "2023-10-26T08:00:16Z")

</div>

It did, within 24 hours of raising an issue on the Telegrambot node.

---

<div class="post-metadata">

**Author:** ![IanH](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ianh/32/95002_2.png) [@IanH](https://discourse.nodered.org/u/IanH)\
**Post date:** [26 October 2023 09:37 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323/7 "2023-10-26T09:37:13Z")

</div>

> [@IanH](#):
>
> node-red-contrib-telegrambot

I can confirm that changing Node back to node18 fixed the problem which appears to be a node20 compatibility problem in node-red-contrib-telegrambot

---

<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:** [25 December 2023 09:37 UTC](https://discourse.nodered.org/t/how-to-revert-node-from-20-to-18/82323/8 "2023-12-25T09:37:20Z")

</div>

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