NEWS
ioBroker Installation npm Err!
-
pi@raspberrypi:~ $ sudo systemctl stop iobroker pi@raspberrypi:~ $ iobroker fix library: loaded Library version=2022-12-09 ioBroker is not installed in /opt/iobroker! Cannot fix anything... pi@raspberrypi:~ $ sudo systemctl start iobroker pi@raspberrypi:~ $
-
cd /opt/iobroker sudo -H -u iobroker npm install iobroker.js-controller iobroker restart iobroker status
-
@thomas-braun
Habe die Installation noch mal gestartet und?pi@raspberrypi:~ $ curl -sLf https://iobroker.net/install.sh | bash - library: loaded Library version=2022-12-09 ========================================================================== Welcome to the ioBroker installer! Installer version: 2022-12-09 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/4) ========================================================================== Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done Changing npm registry to https://registry.npmjs.org Installed gcc-c++ ========================================================================== Creating ioBroker user and directory (2/4) ========================================================================== Created /etc/sudoers.d/iobroker Directory /opt/iobroker created ========================================================================== Installing ioBroker (3/4) ========================================================================== ========================================================================== Finalizing installation (4/4) ========================================================================== Enabling autostart... Autostart enabled! Fixing directory permissions... ========================================================================== ioBroker was installed successfully Open http://192.168.178.58:8081 in a browser and start configuring! ========================================================================== You need to re-login before doing anything else on the console! pi@raspberrypi:~ $
Hurra, jetzt geht es, aber warum?
-
@xerxes55 sagte in ioBroker Installation npm Err!:
aber warum?
Weil jetzt die richtige nodeJS-Version installiert ist.
-
Und was sagt nun
uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
-
@thomas-braun
Aber warum diese Problem? Ich die Installation strikt nach den Anleitung gemacht. Wer installiert NodeJS. Linux oder ioBroker? -
pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs armv7l /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.19.0 v16.19.0 8.19.3 4.0.23 pi pi adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin gpio i2c spi iobroker tty /home/pi Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease Reading package lists... Done nodejs: Installed: 16.19.0-deb-1nodesource1 Candidate: 16.19.0-deb-1nodesource1 Version table: *** 16.19.0-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u1 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages pi@raspberrypi:~ $
-
@xerxes55 sagte in ioBroker Installation npm Err!:
Linux oder ioBroker?
Der Paketmanager. Der wird auch eigentlich vom Installationsskript richtig gefüttert. Keine Ahnung was du da gemacht hast.
-
@xerxes55
Jetzt ist ales ok? Kann ich damit produktiv arbeiten? -
Sollte passen.
-
@thomas-braun said in ioBroker Installation npm Err!:
Keine Ahnung was du da gemacht hast.
Ich habe schon mehrmals geschrieben: alles gemäß der Anleitung in dem Link am Anfang. Den Beitrag hast du auch selbst geschrieben! Bin kein Linux Fachmann!
-
@xerxes55 sagte in ioBroker Installation npm Err!:
Aber warum diese Problem? Ich die Installation strikt nach den Anleitung gemacht.
da muss aber beteits eine alte nodejs vor dem Aufruf des Installers drauf gewesen sein,
Deswegen wurde iobroker unvollständig installiert.@xerxes55 sagte in ioBroker Installation npm Err!:
Wer installiert NodeJS. Linux oder ioBroker?
Entweder du, oder wenn noch nichts drauf is installiert iobroker die momentan aktuelle Version.
-
@xerxes55 sagte in ioBroker Installation npm Err!:
Den Beitrag hast du auch selbst geschrieben!
Das weiß ich. Und daher weiß ich auch, dass es genau so auch funktioniert.
-
@thomas-braun
Ich habe die SD Karte komplett neu geschrieben, daher weiß ich nicht woher das kommt. Trotzdem vielen, vielen Dank! -
@thomas-braun
Hey, habe ein ähnliches Problem, wollte das updateaus dem iobroker machen aber irgendwas ist schief gelaufen.
Habe danach schon einiges versucht zu deinstallieren wie die node und iobroker aber jetzt geht gar nix mehr.
wenn ich über den installtions link den iobroker neu installieren will kommt:
Welcome to the ioBroker installer!
Installer version: 2022-12-09You might need to enter your password a couple of times.
==========================================================================
==========================================================================
Installing prerequisites (1/4)OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
OK:3 https://repos.influxdata.com/debian bullseye InRelease
OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
OK:5 https://packages.grafana.com/enterprise/deb stable InRelease
Paketlisten werden gelesen... Fertig
Changing npm registry to https://registry.npmjs.org
npm ERR! builtins is not a functionnpm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-12-21T18_56_11_280Z-debug-0.log
Installed gcc-c++==========================================================================
Creating ioBroker user and directory (2/4)Created /etc/sudoers.d/iobroker
Directory /opt/iobroker created==========================================================================
Installing ioBroker (3/4)npm ERR! builtins is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2022-12-21T18_56_16_582Z-debug-0.log==========================================================================
Finalizing installation (4/4)Enabling autostart...
Autostart enabled!
Fixing directory permissions...==========================================================================
ioBroker was installed successfully Open http://192.168.1.95 10.8.0.1:8081 in a browser and start configuring!
==========================================================================
You need to re-login before doing anything else on the console!
eine idee was ich machen kann? er ist definitv nicht mehr erreichbar
-
Setz das in CodeTags.
-
Welcome to the ioBroker installer! Installer version: 2022-12-09 You might need to enter your password a couple of times. ========================================================================== ========================================================================== Installing prerequisites (1/4) ========================================================================== OK:1 http://archive.raspberrypi.org/debian bullseye InRelease OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease OK:3 https://repos.influxdata.com/debian bullseye InRelease OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease OK:5 https://packages.grafana.com/enterprise/deb stable InRelease Paketlisten werden gelesen... Fertig Changing npm registry to https://registry.npmjs.org npm ERR! builtins is not a function npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-12-21T18_56_11_280Z-debug-0.log Installed gcc-c++ ========================================================================== Creating ioBroker user and directory (2/4) ========================================================================== Created /etc/sudoers.d/iobroker Directory /opt/iobroker created ========================================================================== Installing ioBroker (3/4) ========================================================================== npm ERR! builtins is not a function npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-12-21T18_56_16_582Z-debug-0.log ========================================================================== Finalizing installation (4/4) ========================================================================== Enabling autostart... Autostart enabled! Fixing directory permissions... ========================================================================== ioBroker was installed successfully Open http://192.168.1.95 10.8.0.1:8081 in a browser and start configuring! ========================================================================== You need to re-login before doing anything else on the console!
meinst du so?
-
Check deine nodejs-Installation. Ich vermute die ist/war mal krumm.
-
pi@raspberrypi:~ $ apt policy nodejs nodejs nodejs: Installiert: 16.19.0-deb-1nodesource1 Installationskandidat: 16.19.0-deb-1nodesource1 Versionstabelle: *** 16.19.0-deb-1nodesource1 500 500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages 100 /var/lib/dpkg/status 12.22.12~dfsg-1~deb11u1 500 500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages Welcome to Node.js v16.19.0. Type ".help" for more information. >
ich denke auch weil da 2 nodejs installiert sind. aber wie kann ich die 12.22.12 löschen?
-
Gar nicht. Die ist ja nicht (über den Paketmanager) installiert.
Was sagtsudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs