You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I have updated Dietpi from 9.8.0 to 9.9.0 and started to have problems with Node red.
If I try to install (or update) ANY of the available nodes I get an BADENGINE error from npm 2024-12-25T16:17:28.748Z [err] npm error code EBADENGINE 2024-12-25T16:17:28.748Z [err] npm error engine Unsupported engine 2024-12-25T16:17:28.748Z [err] npm error engine Not compatible with your version of node/npm: @homebridge/[email protected] 2024-12-25T16:17:28.748Z [err] npm error notsup Not compatible with your version of node/npm: @homebridge/[email protected] 2024-12-25T16:17:28.748Z [err] npm error notsup Required: {"node":"^18 || ^20 || ^22"} 2024-12-25T16:17:28.748Z [err] npm error notsup Actual: {"npm":"10.9.2","node":"v23.5.0"} 2024-12-25T16:17:28.749Z [err] npm error A complete log of this run can be found in: /mnt/dietpi_userdata/node-red/.npm/_logs/2024-12-25T16_17_27_651Z-debug-0.log 2024-12-25T16:17:28.757Z rc=1
The installed node.js is version 23 but no modules want that, even the official recommendation from Node red is to use version 22.
I installed NodeRed via dietpi-software and it pulls version 23
can you revert back to Node.js version 22?
If I try to install Node red via their official script it thrown se an error that I am running Dietpi and should install via Dietpi-software.
Thank you
The text was updated successfully, but these errors were encountered:
For anyone facing the same problems, you can manually downgrade Node.js wget https://raw.githubusercontent.com/MichaIng/nodejs-linux-installer/master/node-install.sh chmod +x node-install.sh sudo ./node-install.sh -v v20.18.1
and reboot the system
Worked for me and now I can install modules
We should switch to LTS versions by default. I checked the index we currently parse, and there is an LTS field indeed. It is a little inconsistent, sometimes containing the code name of the release, sometimes just "true", and some subversions of an LTS release have the field empty. But otherwise I think we can use it, taking the first release which has this field set to any value (other than "-"):
Hello
I have updated Dietpi from 9.8.0 to 9.9.0 and started to have problems with Node red.
If I try to install (or update) ANY of the available nodes I get an BADENGINE error from npm
2024-12-25T16:17:28.748Z [err] npm error code EBADENGINE 2024-12-25T16:17:28.748Z [err] npm error engine Unsupported engine 2024-12-25T16:17:28.748Z [err] npm error engine Not compatible with your version of node/npm: @homebridge/[email protected] 2024-12-25T16:17:28.748Z [err] npm error notsup Not compatible with your version of node/npm: @homebridge/[email protected] 2024-12-25T16:17:28.748Z [err] npm error notsup Required: {"node":"^18 || ^20 || ^22"} 2024-12-25T16:17:28.748Z [err] npm error notsup Actual: {"npm":"10.9.2","node":"v23.5.0"} 2024-12-25T16:17:28.749Z [err] npm error A complete log of this run can be found in: /mnt/dietpi_userdata/node-red/.npm/_logs/2024-12-25T16_17_27_651Z-debug-0.log 2024-12-25T16:17:28.757Z rc=1
The installed node.js is version 23 but no modules want that, even the official recommendation from Node red is to use version 22.
I installed NodeRed via dietpi-software and it pulls version 23
can you revert back to Node.js version 22?
If I try to install Node red via their official script it thrown se an error that I am running Dietpi and should install via Dietpi-software.
Thank you
The text was updated successfully, but these errors were encountered: