Cannot install Node-Red on VM

Having issues with your DietPi installation, or, found a bug? Post it here.
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Cannot install Node-Red on VM

Post by baz123 »

During install the following error is seen.

Code: Select all

[  OK  ] DietPi-Software | G_AGI python python3
/DietPi/dietpi/dietpi-software: line 2914:  2426 Illegal instruction     npm i -g --unsafe-perm node-red
Using the VM image.
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot install Node-Red on VM

Post by Joulinar »

Hi,

I was testing the installation of node-red on my VM as well without issues. Are you able to retry?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Cannot install Node-Red on VM

Post by baz123 »

Nope, same error.

Code: Select all

 Mode: Installing Node-Red: tool for wiring devices, APIs and online services

[ INFO ] DietPi-Software | APT installation for: python python3, please wait...
[  OK  ] DietPi-Software | G_AGI python python3
/DietPi/dietpi/dietpi-software: line 2914: 17865 Illegal instruction     npm i -g --unsafe-perm node-red
[ SUB1 ] DietPi-Services > stop
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : netdata
[  OK  ] DietPi-Services | stop : mosquitto
[  OK  ] DietPi-Services | stop : avahi-daemon
I have tried uninstalling and reinstalling.
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot install Node-Red on VM

Post by Joulinar »

can you maybe create an empty / fresh VM and check how it is there? You could one of the new VM Images.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Cannot install Node-Red on VM

Post by baz123 »

This is an almost fresh image (just a few packages added) running

DietPi v6.28.0

Code: Select all

root@DietPi:~#  cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
What is 'new'? It is a PITA to convert the VMWare to an ESXI image so unless there is a good reason to, I'd rather not update the base image.
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot install Node-Red on VM

Post by Joulinar »

hmm it might be that this is because you are running on ESXI server. Looks like your hardware/cpu architecture is not supported and you get the

Code: Select all

Illegal instruction
message. Did you checked the option to install Node-Red on Docker?

https://nodered.org/docs/getting-started/docker
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Cannot install Node-Red on VM

Post by baz123 »

Joulinar wrote: Thu Feb 27, 2020 10:18 pm hmm it might be that this is because you are running on ESXI server. Looks like your hardware/cpu architecture is not supported and you get the

Code: Select all

Illegal instruction
message.
In which case DietPi should mark as unavailable?

Thing is, it *used* to work fine. Only when I updated to Buster images did it complain.

The server is just an AMD Turion Neo N54L.
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot install Node-Red on VM

Post by Joulinar »

Hi,

DietPi is doing nothing else as executing the commands that are listed on Node-Red WebSite.

https://nodered.org/docs/getting-started/local

Code: Select all

npm install -g --unsafe-perm node-red
So you could execute it yourselves. But this exactly the point where your installation failed

Code: Select all

Illegal instruction     npm i -g --unsafe-perm node-red
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Re: Cannot install Node-Red on VM

Post by baz123 »

Yes that is exactly where it failed. I tried it manually without success. There was some stuff on-line regarding an issue with Proxies (I'm not behind one) and I tried some of the fixes but I have not been able to solve the issue. Very annoying. I like DietPi but it seems that for me (with the HDD/SSD issue as well) it is time to part ways.

8)
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Cannot install Node-Red on VM

Post by Joulinar »

I don't think this is a DietPi problem. But maybe you could try a different Debian Destro on your ESXI server.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply