# Update NodeRed from 3.1.3 to 4.0 on a Raspberry Pi 4B using Debian version 11 (bullseye)

**URL:** <https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095>\
**Category:** General\
**Created:** [1 October 2024 09:19 UTC](https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095 "2024-10-01T09:19:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nosered1966](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nosered1966/32/52859_2.png) [@nosered1966](https://discourse.nodered.org/u/nosered1966)\
**Post date:** [1 October 2024 09:19 UTC](https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095/1 "2024-10-01T09:19:29Z")

</div>

Hi,  
here  
[https://nodered.org/docs/getting-started/local#upgrading-node-red](https://nodered.org/docs/getting-started/local#upgrading-node-red)  
it is stated that there are two methods to update depending on the way Node-Red was installed:

- using a pi script
- using global npm packge.

How can if find out how Node-Red was installed (because I do not remember)?

Thank you and kind regards  
Thomas

---

<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:** [1 October 2024 09:32 UTC](https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095/2 "2024-10-01T09:32:29Z")

</div>

How do you start node-red?

What does the command `which node-red` show?

---

<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:** [1 October 2024 10:46 UTC](https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095/3 "2024-10-01T10:46:18Z")

</div>

> [@nosered1966](#):
>
> using global npm packge.

You don't have to install Node-RED globally, that is just the "simple" way it is described in the docs. It is a node.js app and can be installed and managed just as any other node.js app/microservice.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [1 October 2024 11:03 UTC](https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095/4 "2024-10-01T11:03:55Z")

</div>

If you installed using the script, there will be a file or files /var/log/nodered-install.log

eg

```auto
ls -l /var/log/node*
-rw-r--r-- 1 root root 3640 Jun 20 19:58 /var/log/nodered-install.log
-rw-r--r-- 1 root root 1959 Jun 11 18:03 /var/log/nodered-install.log.1
-rw-r--r-- 1 root root 822 Feb 16 2024 /var/log/nodered-install.log.2.gz

```

---

<div class="post-metadata">

**Author:** ![nosered1966](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nosered1966/32/52859_2.png) [@nosered1966](https://discourse.nodered.org/u/nosered1966)\
**Post date:** [1 October 2024 16:29 UTC](https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095/5 "2024-10-01T16:29:29Z")

</div>

Thanks all for your help and quick response!

`which node-red` **shows**  
`/usr/bin/node-red`

`ls -l /var/log/node*` **shows**  
`-rw-r--r-- 1 root root 0 Jan 14 2024 /var/log/nodered-install.log`  
`-rw-r--r-- 1 root root 1668 Jan 13 2024 /var/log/nodered-install.log.1`  
`-rw-r--r-- 1 root root 2073 Jun 21 2023 /var/log/nodered-install.log.2.gz`

@TotallyInformation  
Thank you for that hint, but I have no idea about Linux or how to deal with a microservice. And because I don't want to ruin the installation on my rpi4B I'm asking these questions.  
I now assume that I will use the script for the upgrade. But first I will make a backup...

Thx!

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [15 December 2024 23:02 UTC](https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095/6 "2024-12-15T23:02:25Z")

</div>

A post was split to a new topic: [Update NodeRED to 4.0.5 from 3.0.2?](https://discourse.nodered.org/t/update-nodered-to-4-0-5-from-3-0-2/93921)

---

<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:** [15 March 2025 23:02 UTC](https://discourse.nodered.org/t/update-nodered-from-3-1-3-to-4-0-on-a-raspberry-pi-4b-using-debian-version-11-bullseye/92095/7 "2025-03-15T23:02:29Z")

</div>

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