cat /DietPi/dietpi/.versionecho $G_DISTRO_NAME or cat /etc/debian_versionuname -aecho $G_HW_MODEL_DESCRIPTION or (EG: RPi3)sed -n 5p /DietPi/dietpi/.hw_modeldiepi-software install 122dietpi-software command.Whilst I accept that some setups do work with V13, as V12 is the supported version, that is the version that should be installed by DietPi.
I have just used the official NR install script (commented out the DietPi check) and node-red successfully installed (as user dietpi).
@borpin
Many thanks for your report. Yes there are other cases where lower Node version are required. Via n module this is luckily quite easy.
I'll also check the official NR install script, not sure if this did not exist earlier or we faced other issues with it.
I'll also check the official NR install script, not sure if this did not exist earlier or we faced other issues with it.
I wasn't suggesting using it, the locations of the user data precludes it I suspect, I just used it as an example of the version of nodjs it installed.
@borpin
I'll check regardless, probably the steps required afterwards (to comply with DietPi) are less effort compared to keeping up with dependencies and Node version... However a main Node version indeed is not hard to apply and we do this in other cases as well. Only issue is that with "n", the Node version is applied system-wide. We're thinking about running each program with the latest Node version it supports as well: #2226 (EDIT: Ah, you were already responding to that issue as well :smile:)
Ah, you were already responding to that issue as well
馃榾 yes, 18 months ago 馃榾. I think that was because of a npm package that required a specific version of nodejs.
One other point, for me, I could not manually downgrade as nodejs V13 simply does not work - any npm command is greeted with an 'illegal instruction' error 馃槩.
As a minimum, I think the nodejs install should offer a 'do you want a specific version?' option during install (or before).
@borpin
We use the official Node installer, and generally, as well since we offer unintended installs, it should by default pull the most current version. Manual downgrading via "n" as you mentioned in the other issue is easy anyway.
One other point, for me, I could not manually downgrade as nodejs V13 simply does not work - any npm command is greeted with an 'illegal instruction' error :cry:.
Okay, but this then means that v13 is not only incompatible with Node-RED but with your whole system? Hmm this requires additional investigation then, probably there have been made some deeper changes that require a certain Linux version or such :thinking:.
As already mention on the forum entry, node-red installation is working fine on my VM as well as RPi system. Even if it pull node.js v13. So it seems something special on the ESXi Server installation. Maybe due to the server architecture.
Okay good to know. Probably a kernel upgrade helps, e.g. pulling Linux 5.X from backports:
apt install linux-image-amd64/buster-backports
Okay, but this then means that v13 is not only incompatible with Node-RED but with your whole system?
@MichaIng Potentially yes. As I said it used to work but when I started with a fresh Buster image it would not work.
node-red installation is working fine on my VM as well as RPi system. Even if it pull node.js v13.
@Joulinar As I said, I'm not denying that. But if the official NR install script uses V12 and their pages state that the supported version is V12, then custom installers should respect that and only install V12 (IMHO).
I'll run some test on VMware later, which should behave very close to ESXI VM (?).
I ran testes on VMware and everything works pretty fine. So even that Node-RED officially states Node v12 as latest supported version, I am not too keen to add a version downgrade to the installer, which we then need to remove again at a later time.
A better idea is to concentrate on debugging Node v13 on (your) ESXi Buster machine, as this seems to be the root of the issue, not Node-RED + Node v13 compatibility.
And as said, just in case, try to fully upgrade your system:
apt update
apt full-upgrade
And try it with Linux 5.4:
apt install linux-image-amd64/buster-backports
I mark this as closed. VM-specific it seems, must be replicated on current ESXi with current kernel package before we can pick up.