Can not install Node Red on EdgeBox-RPI-200

Hello.

Can someone help me install Node-RED on the EdgeBox-RPI-200? When I try to install Node-RED, I get error \u271\u2718 bad install : Node.js missing NPM missing - Exit

Does somebody have a solution for my problem ?

I have already updated my system.
It didnt helped.

Hi there,

Just tried to install node-red on Raspberry bullseye, everything went smoothly.

After launching the node-red:

I see that you may have the missing node and npm as described. Mostly, in debian distro linux, you should always check if your package manager is functional.

You may try to install node and npm with apt-get commands beforehead:

  • Update package source
sudo apt-get update
  • Install node and npm
sudo apt-get install nodejs npm

It doesn’t matter what version is installed, check the functionality of apt before you execute the script provided by node-red.

Note: You may also check the log of unsuccessful installation, according the log provided, there were some errors with apt:

The conflict suggests that other process may using apt, hence, this process cannot access the files that needed.

So, when you execute the script with the tutorial, remember not to install any other applications via apt, wait until it finishes the installation.

Hello.
I did everything that official instruction ask from me and it does not work. I have Buster OS on EdgeBox-RPI-200. How did you install bullseye on your EdgeBox-RPI-200 ?

I’ve verified that indeed we’ll face some issues when installing Node-RED on buster.

Therefore, I will attach my ways of solving this problem.

1. Using Docker

Node-RED support running in a docker container. So you can use docker to host a Node-RED service. On buster, for your reference, I’ll attach a link on how to install docker on Raspberry Pi:

Docker Doc - Install Docker Engine on Raspberry Pi OS (32-bit)

I followed their documentation and installed docker successfully.
(I logged in my EdgeBox via ssh)

  • Uninstall all conflicting packages:
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
  • Set up Docker’s apt repository.
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/raspbian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/raspbian \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

A screenshot of previous actions:

  • Install Docker packages
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

  • Verify that the installation is successful by running the hello-world image
sudo docker run hello-world

Note: If you encounter some errors regarding to permissions, please add the current user to docker group

sudo usermod -aG docker $USER
newgrp docker

If this won’t work, restart a new terminal or reboot and try again.

  • For the rest part, I followed the Node-RED official document to run Node-RED in docker. The link:
    Running under Docker

  • Using the following command to pull the docker image and start your container:

docker run -it -p 1880:1880 -v node_red_data:/data --name mynodered --security-opt=seccomp=unconfined nodered/node-red:latest

If you don’t know the meaning of this command, don’t worry, please follow the Node-RED documentation, they provide detail explanations and extra operations with docker.

One thing need to be mentioned, when using the docker run command on buster, I faced some wired errors, then I did some research, some people told that extra --security-opt=seccomp=unconfined is needed.

nodered/node-red:3.0.0 does not run on raspberry pi / Raspbian

Still, it’s because the buster is too old

  • When the terminal pops the IP address and some other info, you should be able to access Node-RED via a web browser.

Another thing need to mention here, it seems that the default chromium browser in buster won’t work. I assume it’s the same problem that the version is too old. Then I switched to firefox and everything went well.

The above screenshot I captured is running in native firefox in pi.

  • Install firefox with
sudo apt install firefox-esr -y

Here’s the chromium’s screenshot:

I’ve also tested it on my desktop. It also worked well(You need to manually type your pi’s IP address).

I don’t know why my links or bash code would trigger the alert and it won’t let me send any code…

I’ve attached a pdf of upgrading your system as the second solution.

Solution_2_Upgrade_Your_System.zip (1.8 MB)

Links that I reference:

How to Upgrade Debian 10 Buster to Debian 11 Bullseye

Running on Raspberry Pi

1 Like