NEWS
ioBroker Installation npm Err!
-
@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
-
pi@raspberrypi:~ $ 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 armv7l Kein Docker /usr/bin/nodejs /usr/bin/node /usr/bin/npm v16.19.0 v16.19.0 8.19.3 node:internal/modules/cjs/loader:998 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15) at Function.Module._load (node:internal/modules/cjs/loader:841:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:22:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } pi@raspberrypi:~ $
-
@chris982
Ich weiß nicht wie oft das hier schon gefixt wurde. Such nach der Fehlermeldung. -
@thomas-braun
ok, mache mich nochmal auf die suche, hbe vorhin aber nichts wirkliches gefunden.Danke Dir schon mal
-
Zuletzt genau in diesem Thread. Vor nicht mal 24 Stunden.
-
ja die sachen habe ich auch schon mehrfach gemacht aber es geht leider trotzdem nicht. oder habe ich noch was übersehen?
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 pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller npm ERR! builtins is not a function npm ERR! A complete log of this run can be found in: npm ERR! /home/iobroker/.npm/_logs/2022-12-21T19_50_27_303Z-debug-0.log pi@raspberrypi:/opt/iobroker $ iobroker restart pi@raspberrypi:/opt/iobroker $ iobroker status node:internal/modules/cjs/loader:998 throw err; ^ Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15) at Function.Module._load (node:internal/modules/cjs/loader:841:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:22:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } pi@raspberrypi:/opt/iobroker $ cd 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) ========================================================================== 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-21T19_51_38_882Z-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-21T19_51_44_342Z-debug-0.log ========================================================================== Finalizing installation (4/4) ========================================================================== Enabling autostart... Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service -> /lib/systemd/system/iobroker.service. 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! pi@raspberrypi:~ $
-
@chris982 sagte in ioBroker Installation npm Err!:
npm ERR! builtins is not a function
iobroker stop sudo apt update sudo apt install --reinstall nodejs type -P npm nodejs node