NEWS
node js Update - npm bad error EBADENGINE
-
@thomas-braun sagte in node js Update - npm bad error EBADENGINE:
iob upgrade all -y
läuft gerade und die ersten Adapter sind durchgelaufen....
D.h. die Informationen für die Adapter bei mir auf der Platte waren veraltet und konjugiert damit wurden nun das repo aktualisiert??? oder was ist hier der Mechanismus?
-
@madjack84 sagte in node js Update - npm bad error EBADENGINE:
das hier bekomme ich wenn ich den MQTT adapter aktualisieren möchte
Da klemmt es bei dem ring-Adapter. Den zuerst aktualisieren.
-
@madjack84 sagte in node js Update - npm bad error EBADENGINE:
oder was ist hier der Mechanismus?
Der Mechanismus ist, das dein gnadenlos abgesoffener ring-Adapter bzw. eine der Abhängigkeiten so alt war/ist, das der mit aktuellen nodejs-Versionen nicht mag. Deswegen hält man seine Kiste auch regelmäßig auf Stand, dann passiert das nicht (so leicht).
-
@thomas-braun
ich hab heut dick gelesen:If it ain't broker, don't fix it

aber ja,... ich hab den iobroker die letzten Monate stark vernachlässigt

Dir schonmal größten Dank für die fixe Hilfe.... ich wühl mich mal durch ob alles funktioniert

-
@madjack84 sagte in node js Update - npm bad error EBADENGINE:
If it ain't broker, don't fix it
MOOOOOOOOOARRRRRR....
Das ist der allergrößte BULLSHIT EVER!!!!!!!Wer erzählt so einen Schwachsinn immer????
Es gilt: Halt die Kiste immer auf einem aktuellen, stabilen Stand.
-
https://tasmota.github.io/docs/Upgrading/
these guys
hab vorhin ne Steckdose aktualisiert -
@thomas-braun Lektion gelernt!
Und ich bin immer noch beeindruckt wie du das so schnell irgendwo rausgelesen hast. Hab eben die logs durch gescrollt und nix gefunden #shame
Danke nochmal

-
Joh, bei Tasmota sollst du auch nicht jede kleine Änderung in den Speicher dampfen. Aber so ab und an würde ich auch das auf die nächste Major-Version heben.
Für Server-(Dienste) gilt aber: Updaten, updaten, updaten.
-
@madjack84 sagte in node js Update - npm bad error EBADENGINE:
these guys hab vorhin ne Steckdose aktualisiert
IOT ist ein großes Sicherheitsrisiko und bedarf ständiger Upgrades.
Das auch hier oftmals proklamierte Argument, "meine Geräte dürfen nicht ins Internet" greift aus meiner Sicht zu kurz, denn wenn ICH darauf zugreifen kann, kann ein anderer, der auf irgendeine Weise mein System kompromittiert hat, vortäuschen ICH zu sein.
Hier eine Startrampe für IOT-Sicherheit
-
Ich bin hier gelandet bei der Suche nach meinem Fehler:
npm error code EBADENGINEIch habe einen Adapter-Update-Stau seitdem ich auf node 22 geupdatet bin auf dem Pi4. Auf meinem Haupthost auf einem NUC habe ich die Probleme nicht. Es kann also nicht an den Adaptern liegen:

Admin Updateversuch:
Device-Watcher Updateversuch:
MOD-EDIT: Code in code-tags gesetzt!
-
@lobomau sagte in node js Update - npm bad error EBADENGINE:
hap-nodejs
ist nicht kompatibel mit nodejs@22. Schau nach wo der in deiner Installation hängt und aktualisier den übergeordneten Adapter ggfls. nochmal frisch drüber.
cd /opt/iobroker && npm ls hap-nodejs -
@thomas-braun mit
npm1 hap-nodejskann er nichts anfangen. Von zu Hause kann ich besser die Fehlermeldungen posten. Bis später.
Im Mai hattet ihr schon das Thema 'hap-nodejs@1.1.0'
https://forum.iobroker.net/topic/81186/nodejs-update-post-install-check -
@lobomau sagte in node js Update - npm bad error EBADENGINE:
mit
npm1 hap-nodejs
kann er nichts anfangen.das steht ja auch nicht bei @Thomas-Braun
-
@homoran sagte in node js Update - npm bad error EBADENGINE:
das steht ja auch nicht bei @Thomas-Braun
Bei mir stand aber dafür anderer Quark... Jetzt passt es aber.
-
@thomas-braun sagte in node js Update - npm bad error EBADENGINE:
stand aber dafür anderer Quark
hatte ich vermutet

-
@homoran ich auch

ich hatte auch "1" und "l" ausprobiert
Nun lief schon mal der Befehl durch:pi@Pi4:~ $ cd /opt/iobroker && npm ls hap-nodejs iobroker.inst@3.0.0 /opt/iobroker └─┬ iobroker.yahka@1.0.9 └── hap-nodejs@1.1.0Ich habe anschließend einen reboot und update, upgrade ausgeführt.
noch sind wir nicht am Ziel, Fehler ist geblieben:
$ iobroker upgrade admin@7.7.2 --debug Update admin from @7.6.17 to @7.7.2 host.Pi4 Adapter "system.adapter.admin.2" is stopped. NPM version: 10.9.3 Installing iobroker.admin@7.7.2... (System call) npm error code EBADENGINE npm error engine Unsupported enginenpm error engine Not compatible with your version of node/npm: hap-nodejs@1.1.0npm error notsup Not compatible with your version of node/npm: hap-nodejs@1.1.0npm error notsup Required: {"node":"^18 || ^20"}npm error notsup Actual: {"npm":"10.9.3","node":"v22.19.0"} npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2025-09-12T16_24_24_746Z-debug-0.log Updating objects from io-package.json for adapter "admin" with version "7.6.17" upload [171] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/admin.png admin.png image/png upload [150] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/custom/assets/Components-BGVs6Dmn.js custom/assets/Components-BGVs6Dmn.js application/javascript upload [100] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/custom/assets/index-B82Lauwj.js custom/assets/index-B82Lauwj.js application/javascript ... -
@lobomau sagte in node js Update - npm bad error EBADENGINE:
noch sind wir nicht am Ziel
wie auch?
hast du das vollständig gemacht?
@thomas-braun sagte in node js Update - npm bad error EBADENGINE:
Schau nach wo der in deiner Installation hängt und aktualisier den übergeordneten Adapter ggfls. nochmal frisch drüber.
-
Du musst yahka auf Stand bringen...
yahka github: 1.1.5 latest: 1.1.5 for 65 days stable: 1.1.5 for 65 days -
@lobomau
Wie Thomas schon schrieb:
https://github.com/jensweigele/ioBroker.yahka#115-2025-07-09yahka MUSS aktualisisert werden. Blockiert sonst alle Updates.
-
edit: ich soll da einen pam-devel installieren. Aber mit irgendeinem operanden:
pi@Pi4:~ $ cd /opt/iobroker pi@Pi4:/opt/iobroker $ sudo install pam-devel install: missing destination file operand after 'pam-devel' Try 'install --help' for more information. pi@Pi4:/opt/iobroker $edit2: ein Paket bekomme ich nicht upgegradet. Kann das einen Einfluss haben?
1 package can be upgraded. Run 'apt list --upgradable' to see it. pi@Pi4:/opt/iobroker $ sudo apt upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages have been kept back: raspi-utils-dt 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. pi@Pi4:/opt/iobroker $@mcm1957 ok, also zuerst yahka. Und davor erstmal ring?
Geht auch nicht. Unterer log dazu.
Also soll ich prüfen wo es hakt... keine Ahnung wo ich da schauen soll.
Ansonsten könnte ich auf node 20 zurück.$ iobroker upgrade yahka@1.1.5 --debug Update yahka from @1.0.9 to @1.1.5 NPM version: 10.9.3 Installing iobroker.yahka@1.1.5... (System call) npm error code EBADENGINE npm error engine Unsupported engine npm error notsup Not compatible with your version of node/npm: ring-client-api@13.1.0npm error notsup Required: {"node":"^18 || ^20"}npm error notsup Actual: {"npm":"10.9.3","node":"v22.19.0"} npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2025-09-13T07_01_41_101Z-debug-0.log Cannot install "pam-devel": WARNING: apt does not have a stable CLI interface. Use with caution in scripts.E: Unable to locate package pam-devel The following apt packages could not be installed: pam-devel. Please install them manually. Installed the following apt packages: pam-develThese apt packages were already installed: libavahi-compat-libdnssd-dev Updating objects from io-package.json for adapter "yahka" with version "1.0.9" upload [20] yahka.admin /opt/iobroker/node_modules/iobroker.yahka/admin/css/yahka.admin.css css/yahka.admin.css text/css upload [19] yahka.admin /opt/iobroker/node_modules/iobroker.yahka/admin/ext/metroui/css/metro-colors.min.css ext/metroui/css/metro-colors.min.css text/css upload [18] yahka.admin /opt/iobroker/node_modules/iobroker.yahka/admin/ext/metroui/css/metro-icons.min.css ext/metroui/css/metro-icons.min.css text/css upload [17] yahka.admin /opt/iobroker/node_modules/iobroker.yahka/admin/ext/metroui/css/metro-responsive.min.css ext/metroui/css/metro-responsive.min.css text/css$ iobroker upgrade ring@6.4.0 --debug Update ring from @6.3.0 to @6.4.0 Installing iobroker.ring@6.4.0... (System call) npm error code EBADENGINE npm error engine Unsupported enginenpm error engine Not compatible with your version of node/npm: hap-nodejs@1.1.0 npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2025-09-13T07_05_31_950Z-debug-0.log Updating objects from io-package.json for adapter "ring" with version "6.3.0" upload [25] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/admin.d.ts admin.d.ts video/mp2t upload [20] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/i18n/de.json i18n/de.json application/json upload [19] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/i18n/en.json i18n/en.json application/json upload [18] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/i18n/es.json i18n/es.json application/json upload [17] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/i18n/fr.json i18n/fr.json application/json upload [16] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/i18n/it.json i18n/it.json application/json upload [15] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/i18n/nl.json i18n/nl.json application/json upload [14] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/i18n/pl.json i18n/pl.json application/json upload [13] ring.admin /opt/iobroker/node_modules/iobroker.ring/admin/i18n/pt.json i18n/pt.json application/json