NEWS
nodejs is NOT correctly installed
-
- Adaptername: js.controller
- js-controller Version: 18.19.0
- Admin Version: 7.0.22
- Hardwaresystem: Pi4 .
- Arbeitsspeicher: 4 GB
- Festplattenart: SSD
- Betriebssystem: 12 Bookworm
- Nodejs-Version: 18.19.0
- NPM-Version: ./.
- Installationsart: Skript
- Image, Docker genutzt: Nein
======================= SUMMARY ======================= v.2024-05-22 Static hostname: raspberrypi Icon name: computer Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.21-v8+ Architecture: arm64 Installation: native Kernel: aarch64 Userland: 64 bit Timezone: Europe/Berlin (CEST, +0200) User-ID: 1000 Display-Server: false Boot Target: multi-user.target Pending OS-Updates: 0 Pending iob updates: 4 Nodejs-Installation: /usr/bin/nodejs v18.19.0 /usr/bin/node v18.19.0 npm: N/A npx: N/A corepack: N/A Recommended versions are nodejs 20.16.0 and npm 10.8.1 *** nodejs is NOT correctly installed *** Wrong installation path detected. This needs to be fixed. Please execute iobroker nodejs-update to fix these errors. MEMORY: total used free shared buff/cache available Mem: 4.0G 2.2G 391M 1.2M 1.5G 1.8G Swap: 209M 0B 209M Total: 4.2G 2.2G 600M Active iob-Instances: 27 Upgrade policy: none ioBroker Core: js-controller 6.0.9 admin 7.0.22 ioBroker Status: iobroker is running on this host. Objects type: jsonl States type: jsonl Status admin and web instance: + system.adapter.admin.0 : admin : raspberrypi - enabled, port: 8081, bind: 0.0.0.0, run as: admin + system.adapter.web.0 : web : raspberrypi - enabled, port: 8082, bind: 0.0.0.0, run as: admin Objects: 16164 States: 14586 Size of iob-Database: 35M /opt/iobroker/iobroker-data/objects.jsonl 16M /opt/iobroker/iobroker-data/states.jsonl =================== END OF SUMMARY ====================
Hallo, wie es der Name schon verrät...
iob fix iob nodejs-update
laufen durch und vermelden (soweit ich das sehe), dass alles gefixt wurde und der aktuellste js.Controller installiert wurden. Tatsächlich passiert ist aber nichts.
Im Diag steht ja "Wrong installation path detected. This needs to be fixed.". Das müsste doch eigentlich iob fix erledigen, oder?
Ich bin nicht wirklich firm auf der Konsole und will daher nicht irgendwelche Befehle verwenden, welche man in den Foren findet. Kann mir jemand helfen versuchen zu verstehen, wo das Problem liegt und wie man es beheben kann?
Danke
Grüße
Ronny -
@le-r-kelly sagte in nodejs is NOT correctly installed:
Im Diag steht ja "Wrong installation path detected. This needs to be fixed.". Das müsste doch eigentlich iob fix erledigen, oder?
Nein, das macht eigentlich
iob nodejs-update
Zeig mal einen Lauf davon, bitte.
Edit: Der 'falsche Pfad' bedeutet hier: Es gibt nicht mal einen Pfad, in dem npm, npx oder corepack zu finden ist.
Da gibt es dann auch im engeren Sinne nix zu fixen, es muss nur das aktuelle nodejs-Paket ordentlich installiert werden. -
Adaptername: js.controller
js-controller Version: 18.19.0
Nodejs-Version: 18.19.00Du darfst JS-Controller und Nodejs nicht vermischen.
Der JS-Controller ist aktuell bei 6.0.9 und ist der Unterbau des iobroker.
Nodejs liegt grade bei aktuell 20.16.x und kommt vom Betriebssystem und darüber aktualisiert. -
@thomas-braun sagte in nodejs is NOT correctly installed:
iob nodejs-update
Hier der Lauf:
ioBroker nodejs fixer 2024-05-23 Recommended nodejs-version is: 20.16.0 Checking your installation now. Please be patient! Your current setup is: /usr/bin/nodejs v18.19.0 /usr/bin/node v18.19.0 /home/iobroker/.nodejs-update.sh: line 146: npm: command not found /home/iobroker/.nodejs-update.sh: line 147: npx: command not found /home/iobroker/.nodejs-update.sh: line 168: npm: command not found /home/iobroker/.nodejs-update.sh: line 169: npx: command not found *** nodejs is NOT correctly installed *** We found these nodejs versions available for installation: nodejs: Installed: 18.19.0+dfsg-6~deb12u2 Candidate: 20.16.0-1nodesource1 Version table: 20.16.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.15.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.15.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.14.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.13.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.13.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.12.2-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.12.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.12.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.11.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.11.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.10.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.9.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.8.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.8.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.7.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.6.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.6.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.5.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.5.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.4.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.3.1-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.3.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.2.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.1.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages 20.0.0-1nodesource1 1001 500 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages *** 18.19.0+dfsg-6~deb12u2 500 500 http://deb.debian.org/debian bookworm/main arm64 Packages 100 /var/lib/dpkg/status 18.19.0+dfsg-6~deb12u1 500 500 http://security.debian.org/debian-security bookworm-security/main arm64 Packages Your nodejs-Installation seems to be faulty. Shall we try to fix it? Press <y> to continue or any other key to quit Fixing your nodejs setup *** Deleting *** rm: cannot remove '': No such file or directory *** Deleting *** rm: cannot remove '': No such file or directory Wrong paths have been fixed. Run 'iob diag' or 'iob nodejs-update' again to check if your installation is fine now You are running nodejs v18.19.0. Do you want to install recommended version 20.16.0? Press <y> to continue or any other key to quit Trying to fix your installation now. Please be patient. Waiting for ioBroker to shut down - Give me a minute... ############################################################ *** These repos are active on your system: Get:1 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB] Hit:2 http://deb.debian.org/debian bookworm InRelease Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] Hit:4 http://archive.raspberrypi.org/debian bookworm InRelease Get:5 http://security.debian.org/debian-security bookworm-security/main Sources [105 kB] Get:6 http://security.debian.org/debian-security bookworm-security/main arm64 Packages [167 kB] Get:7 http://security.debian.org/debian-security bookworm-security/main armhf Packages [163 kB] Fetched 539 kB in 1s (401 kB/s) Reading package lists... Done *** Installing ca-certificates, curl and gnupg, just in case they are missing. *** Creating new /etc/apt/sources.list.d/nodesource.list and pinning source deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main Package: nodejs Pin: origin deb.nodesource.com Pin-Priority: 1001 *** These repos are active after the adjustments: Hit:1 http://security.debian.org/debian-security bookworm-security InRelease Hit:2 http://deb.debian.org/debian bookworm InRelease Hit:3 http://archive.raspberrypi.org/debian bookworm InRelease Hit:4 http://deb.debian.org/debian bookworm-updates InRelease Get:5 https://deb.nodesource.com/node_20.x nodistro InRelease [12.1 kB] Get:6 https://deb.nodesource.com/node_20.x nodistro/main arm64 Packages [8731 B] Get:7 https://deb.nodesource.com/node_20.x nodistro/main armhf Packages [8776 B] Fetched 29.6 kB in 2s (17.5 kB/s) Reading package lists... Done Installing nodejs now! E: Broken packages Installing the nodejs! E: Broken packages We tried our best to fix your nodejs. Please run iob diag again to verify. *** RESTARTING ioBroker NOW! *** Please refresh or restart your browser in a few moments.
-
Alles klar. Versuch es mal mit der Beta-Version von hier:
-
@tt-tom
Sorry für das Missverständnis. Der Unterschied war mir bewusst, hab nur beim Übertragen der Angaben nicht aufgepasst -
Kommt leider nix dabei raus:
pi@raspberrypi:~ $ curl https://raw.githubusercontent.com/Grothesk242/iob_diag/main/iob_node_update > iob_node_update chmod 744 iob_node_update ./iob_node_update % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 14 100 14 0 0 39 0 --:--:-- --:--:-- --:--:-- 39 ./iob_node_update: line 1: 404:: command not found pi@raspberrypi:~ $ curl https://raw.githubusercontent.com/Grothesk242/iob_diag/main/iob_node_update > iob_node_updatechmod 744 iob_node_update ./iob_node_update % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 14 100 14 0 0 42 0 --:--:-- --:--:-- --:--:-- 42 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:02:11 --:--:-- 0 curl: (28) Failed to connect to 0.0.2.232 port 80 after 131060 ms: Couldn't connect to server % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: iob_node_update ./iob_node_update: line 1: 404:: command not found
-
Zeilenweise eingeben.
-
Das sieht dann so aus:
pi@raspberrypi:~ $ curl https://raw.githubusercontent.com/Grothesk242/iob_diag/main/iob_node_update > iob_node_update % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 14 100 14 0 0 35 0 --:--:-- --:--:-- --:--:-- 35 pi@raspberrypi:~ $ chmod 744 iob_node_update pi@raspberrypi:~ $ ./iob_node_update ./iob_node_update: line 1: 404:: command not found
-
Sorry, der Link hat sich geändert.
curl https://raw.githubusercontent.com/Grothesk242/iob_diag/main/iob_node_update.sh > iob_node_update chmod 744 iob_node_update ./iob_node_update
-
@thomas-braun sagte in nodejs is NOT correctly installed:
./iob_node_update
Tausend Dank - bin auf 20.16.0
Viele Grüße und noch eine schöne Nacht
Ronny