NEWS
nodejs is NOT correctly installed
-
@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