# Start node red without loading any flows

**URL:** https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005
**Category:** General
**Created:** [4 April 2024 11:53 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005 "2024-04-04T11:53:51Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Thewaver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thewaver/32/11917_2.png) [@Thewaver](https://discourse.nodered.org/u/Thewaver)
#### Post date: [15 April 2024 08:24 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/21 "2024-04-15T08:24:32Z")

</div>

Hi Colin, it's running from an SSD not a micro SD card. I have a backup from last year so I'm gonna give that a go and upgrade to latest versions...

---

<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 April 2024 08:46 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/22 "2024-04-15T08:46:55Z")

</div>

In that case try running the `bash <(curl... ` script from the node red docs for running on a Pi, and add on the end ` --node20` to force it to upgrade and hence reinstall nodejs and npm

---

<div class="post-metadata">

### Author: ![Thewaver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thewaver/32/11917_2.png) [@Thewaver](https://discourse.nodered.org/u/Thewaver)
#### Post date: [15 April 2024 10:10 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/23 "2024-04-15T10:10:59Z")

</div>

Here we go again...started the bash script and get this:

Stop Node-RED ✔  
Remove old version of Node-RED ✔  
Using NVM to manage Node.js + please run nvm use lts before running Node-RED  
NOTE: Using nvm is NOT RECOMMENDED. Node-RED will not run as a service under nvm.  
Please see `nvm --help` or [GitHub - nvm-sh/nvm: Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions](https://github.com/nvm-sh/nvm#nvmrc) for more information.  
Update Node.js 20 ✘ Bad install: Node.js missing Npm missing - Exit  
Move global nodes to local  
Npm rebuild existing nodes

So I try:

pi@raspberrypi:~ $ ^C  
pi@raspberrypi:~ $ nvm use lts  
N/A: version "lts -\> N/A" is not yet installed.

You need to run "nvm install lts" to install it before using it.  
pi@raspberrypi:~ $ nvm install lts  
Version 'lts' not found - try `nvm ls-remote` to browse available versions.  
pi@raspberrypi:~ $ nvm install 20.12.2  
v20.12.2 is already installed.  
Now using node v20.12.2 (npm v)  
pi@raspberrypi:~ $

I run the bash script again and get the same error as before..so I am going around in circles!!!

pi@raspberrypi:~ $ npm -v  
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) pi@raspberrypi:~ $ node -v node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX\_3.4.26' not found (required by node)  
pi@raspberrypi:~ $

---

<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 April 2024 10:47 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/24 "2024-04-15T10:47:44Z")

</div>

> [@Thewaver](#):
>
> NOTE: Using nvm is NOT RECOMMENDED. Node-RED will not run as a service under nvm.

Remove nvm completely, run the install script again.

---

<div class="post-metadata">

### Author: ![Thewaver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thewaver/32/11917_2.png) [@Thewaver](https://discourse.nodered.org/u/Thewaver)
#### Post date: [15 April 2024 10:51 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/25 "2024-04-15T10:51:27Z")

</div>

> [@Thewaver](#):
>
> GLIBCXX\_3.4.26

Hi, thanks for the help, sorry to sound like a dork but how do i remove NVM cleanly ??  
Kind regards...

---

<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 April 2024 10:53 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/26 "2024-04-15T10:53:20Z")

</div>

Opposite to how you installed it 😉

> <https://github.com/nvm-sh/nvm/issues/298>
>
> I want to uninstall nvm completely. Is there documentation on how to do this?

---

<div class="post-metadata">

### Author: ![Thewaver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thewaver/32/11917_2.png) [@Thewaver](https://discourse.nodered.org/u/Thewaver)
#### Post date: [15 April 2024 11:16 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/27 "2024-04-15T11:16:35Z")

</div>

Getting further but stuck at Node.js missing...I thought that this bash script installed it??

Stop Node-RED ✔  
Remove old version of Node-RED ✔  
Remove old version of Node.js ✔  
Install Node 20.12.2-1nodesource1 ✘ Bad install: Node.js missing Npm missing - Exit  
Clean npm cache  
Install Node-RED core  
Move global nodes to local  
Npm rebuild existing nodes  
Install extra Pi nodes  
Add shortcut commands  
Update systemd script

---

<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 April 2024 11:18 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/28 "2024-04-15T11:18:50Z")

</div>

> [@Thewaver](#):
>
> Bad install: Node.js missing

Covered many times on the forum: [Search results for 'Bad install: Node.js missing order:latest' - Node-RED Forum](https://discourse.nodered.org/search?q=Bad%20install%3A%20Node.js%20missing%20order%3Alatest)

Try the advice here: [MQTT No Longer Works - #16 by jbudd](https://discourse.nodered.org/t/mqtt-no-longer-works/87182/16) then run the script again.

---

<div class="post-metadata">

### Author: ![Thewaver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thewaver/32/11917_2.png) [@Thewaver](https://discourse.nodered.org/u/Thewaver)
#### Post date: [15 April 2024 12:16 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/29 "2024-04-15T12:16:16Z")

</div>

Looking at the 'mqtt no longer works' I tried:

pi@raspberrypi:~ $ sudo apt update && sudo apt list --upgradeable  
Hit:1 [Index of /debian](http://archive.raspberrypi.org/debian) buster InRelease  
Hit:2 [Index of /raspbian](http://raspbian.raspberrypi.org/raspbian) buster InRelease  
Hit:3 [https://deb.nodesource.com/node\_20.x](https://deb.nodesource.com/node_20.x) nodistro InRelease  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
All packages are up to date.  
Listing... Done  
pi@raspberrypi:~ $

So I am at my wits end with trying to ge this upgraded, every corner I turn there appears another problem!!!

---

<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 April 2024 12:35 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/30 "2024-04-15T12:35:56Z")

</div>

What do these commands show  
`which node`  
`node -v`  
I suspect something from nvm is hanging about.

---

<div class="post-metadata">

### Author: ![Thewaver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thewaver/32/11917_2.png) [@Thewaver](https://discourse.nodered.org/u/Thewaver)
#### Post date: [15 April 2024 12:55 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/31 "2024-04-15T12:55:54Z")

</div>

pi@raspberrypi:~ $ node -v  
-bash: /home/pi/.nvm/versions/node/v20.12.2/bin/node: No such file or directory  
pi@raspberrypi:~ $

---

<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: [15 April 2024 13:03 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/32 "2024-04-15T13:03:41Z")

</div>

> [@Thewaver](#):
>
> All packages are up to date.

I suspect that "all packages are up to date" because Buster is no longer actively supported. Indeed it's only in Long Term Support until June 2024.

I too have Node-red on a computer running Buster. It is long past due for a rebuild from the ground up.

I suggest you:

- Get a micro SD card (64GB seem to be at the sweet price point but 16GB should be plenty unless you have lots of data stored on the SSD) and install Bookworm.
- Boot the Pi from the SD card but with your SSD still attached. (If you have the desktop OS, the SSD should automount, for Lite you need to research how to mount it)
- Install Node-red and any other services.
- Copy documents, scripts etc from SSD to SD
- For Node-red, copy flows.json and flows\_cred.json from SSD to SD
- cd ~/.node-red; npm install. Any errors?
- When the Pi is performing all of the functions that it currently does on SSD, use the copious notes you took during the above steps to repeat the process and get Bookworm onto the SSD.

Sounds simple? So how come my main Node-red server is still on an OS deprecated 3 years ago? 🤔

---

<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 April 2024 14:55 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/33 "2024-04-15T14:55:26Z")

</div>

The install script works fine on Buster, at least it does for me.

---

<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 April 2024 15:00 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/34 "2024-04-15T15:00:09Z")

</div>

> [@Thewaver](#):
>
> -bash: /home/pi/.nvm/versions/node/v20.12.2/bin/node: No such file or directory

see the `nvm` part in that line 👆?

You have not cleanly removed NVM.

---

<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 April 2024 15:32 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/35 "2024-04-15T15:32:06Z")

</div>

As Steve notes, you have not fully removed nvm. Delete that folder (/home/pi/.nvm) and re-run the script.

---

<div class="post-metadata">

### Author: ![Thewaver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thewaver/32/11917_2.png) [@Thewaver](https://discourse.nodered.org/u/Thewaver)
#### Post date: [16 April 2024 08:50 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/36 "2024-04-16T08:50:22Z")

</div>

Running Node-RED install for user pi at /home/pi on raspbian  
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX\_3.4.26' not found (required by node)  
This can take 20-30 minutes on the slower Pi versions - please wait.  
Stop Node-RED ✔  
Remove old version of Node-RED ✔  
Remove old version of Node.js ✔ 20.12.2-1nodesource1  
Install Node 20.12.2-1nodesource1 ✘ Bad install: Node.js missing Npm missing - Exit cache  
Install Node-RED core  
Move global nodes to local  
Npm rebuild existing nodes  
Install extra Pi nodes  
Add shortcut commands  
Update systemd script  
Any errors will be logged to /var/log/nodered-install.log  
pi@raspberrypi:~ $

I also get this:

pi@raspberrypi:~ $ node -v  
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node) pi@raspberrypi:~ $ npm -v node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX\_3.4.26' not found (required by node)  
pi@raspberrypi:~ $

Im pulling my hair out here !!!

---

<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: [16 April 2024 09:22 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/37 "2024-04-16T09:22:46Z")

</div>

What about  
`which node`  
and  
`apt policy nodejs`

---

<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: [16 April 2024 09:24 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/38 "2024-04-16T09:24:57Z")

</div>

Also  
`cat /sys/firmware/devicetree/base/model `

---

<div class="post-metadata">

### Author: ![Thewaver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thewaver/32/11917_2.png) [@Thewaver](https://discourse.nodered.org/u/Thewaver)
#### Post date: [16 April 2024 10:43 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/39 "2024-04-16T10:43:26Z")

</div>

Im giving up and installing a fresh copy on virgin Bullseye image using the bash script...but guess what, more errors:

 ![Screenshot (487)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/4/b445bb5b50b58e57cf927c7158de652d604d0c54.png)  
 ![Screenshot (488)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/3/f30d83572a858abd094d5078110aab290356db5e.png)

Is there an alternative to node red as Im getting very dispondant with it!

---

<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: [16 April 2024 11:13 UTC](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005/40 "2024-04-16T11:13:46Z")

</div>

Other people do successfully install Node-red on a fresh RPiOS installation @Thewaver.  
I have done it 3 times in the last 24 hours. The process really does work.  
If you are consistently getting problems then you are perhaps doing something wrong.

Here are the essential steps:  
Burn the SD card with Raspberry Pi Imager. Use the latest version (Bookworm, not Bullseye). Desktop or Lite both work.  
Boot the Pi.  
sudo apt update && sudo apt -y full-upgrade  
bash \<(curl -sL [https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered](https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered))  
At the end of the installation create a username and password, accept all the defaults.

Is there an alternative?  
Some people like Home Assistant, which (I think) is a replacement operating system and IOT programming environment combined.

[Previous page](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005.md?page=1)

[Next page](https://discourse.nodered.org/t/start-node-red-without-loading-any-flows/87005.md?page=3)
