NEWS
ioBroker Installation npm Err!
-
@thomas-braun
habe das aus deiner Signatur ausgeführt. Ist fertig, gab es aber auch Fehler. Du meinst den ioBroker Installer? -
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://archive.raspberrypi.org/debian bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian 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) ========================================================================== npm ERR! code EBADENGINE npm ERR! engine Unsupported engine npm ERR! engine Not compatible with your version of node/npm: fs-extra@11.1.0 npm ERR! notsup Not compatible with your version of node/npm: fs-extra@11.1.0 npm ERR! notsup Required: {"node":">=14.14"} npm ERR! notsup Actual: {"npm":"7.5.2","node":"v12.22.12"} npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-12-20T20_48_12_106Z-debug.log ========================================================================== 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:~ $
Gleiche Fehler!
-
@xerxes55 sagte in ioBroker Installation npm Err!:
Ist fertig, gab es aber auch Fehler.
Aha...
Und welche streng geheimen Fehler gab es?
Leute, mit 'Funktioniert nicht', 'es gab Fehler', 'ich hab alles so gemacht' kann man genau NULL anfangen... -
@thomas-braun
Ich kann nicht alles aus der Konsole kopieren, weil ich nicht so weit Scrollen kann. Benutze Putty. -
@xerxes55 sagte in ioBroker Installation npm Err!:
Benutze Putty.
Selber schuld. Nimm die PowerShell.
Aber auch in puTTY kann man zurückscrollen. -
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash sudo apt install nodejs sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
sagt?
-
@xerxes55 sagte in ioBroker Installation npm Err!:
Gleiche Fehler!
Ja!
da ist bereits ein veraltetes nodejs drauf!
da kann dann der Installer nichts für.
-
pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash ## Installing the NodeSource Node.js 16.x repo... ## Populating apt-get cache... + apt-get update Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease Reading package lists... Done ## Confirming "bullseye" is supported... + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_16.x/dists/bullseye/Release' ## Adding the NodeSource signing key to your keyring... + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null ## Creating apt sources list file for the NodeSource Node.js 16.x repo... + echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main' > /etc/apt/sources.list.d/nodesource.list + echo 'deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bullseye main' >> /etc/apt/sources.list.d/nodesource.list ## Running `apt-get update` for you... + apt-get update Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Get:3 https://deb.nodesource.com/node_16.x bullseye InRelease [4,586 B] Get:4 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages [784 B] Fetched 5,370 B in 1s (4,860 B/s) Reading package lists... Done ## Run `sudo apt-get install -y nodejs` to install Node.js 16.x and npm ## You may also need development tools to build native addons: sudo apt-get install gcc g++ make ## To install the Yarn package manager, run: curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudo apt-get install yarn pi@raspberrypi:~ $ sudo apt install nodejs Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: gyp libc-ares2 libfuse2 libjs-inherits libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libssl-dev libuv1-dev node-abbrev node-agent-base node-ajv node-ansi node-ansi-regex node-ansi-styles node-ansistyles node-aproba node-archy node-are-we-there-yet node-asap node-asn1 node-assert-plus node-asynckit node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-brace-expansion node-builtins node-cacache node-caseless node-chalk node-chownr node-clone node-color-convert node-color-name node-colors node-columnify node-combined-stream node-concat-map node-console-control-strings node-copy-concurrently node-core-util-is node-dashdash node-debug node-defaults node-delayed-stream node-delegates node-depd node-ecc-jsbn node-encoding node-err-code node-escape-string-regexp node-extend node-extsprintf node-fast-deep-equal node-forever-agent node-form-data node-fs-write-stream-atomic node-fs.realpath node-function-bind node-gauge node-getpass node-glob node-graceful-fs node-har-schema node-har-validator node-has-flag node-has-unicode node-hosted-git-info node-http-signature node-https-proxy-agent node-iconv-lite node-iferr node-imurmurhash node-indent-string node-inflight node-inherits node-ini node-ip node-ip-regex node-is-typedarray node-isarray node-isexe node-isstream node-jsbn node-json-parse-better-errors node-json-schema node-json-schema-traverse node-json-stable-stringify node-json-stringify-safe node-jsonify node-jsonparse node-jsonstream node-jsprim node-leven node-lockfile node-lru-cache node-mime node-mime-types node-minimatch node-mkdirp node-move-concurrently node-ms node-mute-stream node-nopt node-normalize-package-data node-npm-bundled node-npm-package-arg node-npmlog node-number-is-nan node-oauth-sign node-object-assign node-once node-opener node-osenv node-p-map node-path-is-absolute node-performance-now node-process-nextick-args node-promise-inflight node-promise-retry node-promzard node-psl node-puka node-punycode node-qs node-read node-read-package-json node-readable-stream node-resolve node-resolve-from node-retry node-rimraf node-run-queue node-safe-buffer node-semver node-set-blocking node-signal-exit node-slash node-spdx-correct node-spdx-exceptions node-spdx-expression-parse node-spdx-license-ids node-sshpk node-ssri node-string-decoder node-string-width node-strip-ansi node-supports-color node-tar node-text-table node-through node-tunnel-agent node-tweetnacl node-typedarray-to-buffer node-unique-filename node-uri-js node-util-deprecate node-uuid node-validate-npm-package-license node-validate-npm-package-name node-verror node-wcwidth.js node-which node-wide-align node-wrappy node-write-file-atomic node-yallist Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: libnode-dev libnode72 node-gyp npm The following packages will be upgraded: nodejs 1 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. Need to get 24.2 MB of archives. After this operation, 82.2 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://deb.nodesource.com/node_16.x bullseye/main armhf nodejs armhf 16.19.0-deb-1nodesource1 [24.2 MB] Fetched 24.2 MB in 4s (5,772 kB/s) Reading changelogs... Done (Reading database ... 181133 files and directories currently installed.) Removing npm (7.5.2+ds-2) ... Removing node-gyp (7.1.2-4) ... Removing libnode-dev (12.22.12~dfsg-1~deb11u1) ... dpkg: libnode72:armhf: dependency problems, but removing anyway as you requested: nodejs depends on libnode72 (= 12.22.12~dfsg-1~deb11u1). Removing libnode72:armhf (12.22.12~dfsg-1~deb11u1) ... (Reading database ... 180169 files and directories currently installed.) Preparing to unpack .../nodejs_16.19.0-deb-1nodesource1_armhf.deb ... Unpacking nodejs (16.19.0-deb-1nodesource1) over (12.22.12~dfsg-1~deb11u1) ... Setting up nodejs (16.19.0-deb-1nodesource1) ... Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u5) ... Processing triggers for man-db (2.9.4-2) ... pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null pi@raspberrypi:~ $ sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null 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) ========================================================================== Get:1 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB] Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [311 kB] Fetched 334 kB in 1s (288 kB/s) 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) ========================================================================== npm ERR! code 24 npm ERR! path /opt/iobroker/node_modules/iobroker.js-controller npm ERR! command failed npm ERR! command sh -c -- node iobroker.js setup first npm ERR! creating conf/iobroker.json npm ERR! Cannot read system.config: null (OK when migrating or restoring) npm ERR! Server Cannot start inMem-states on port 9000: Failed to lock DB file "/opt/iobroker/iobroker-data/states.jsonl"! npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2022-12-20T21_02_15_028Z-debug-0.log ========================================================================== 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:~ $
Das sagt die Konsole!
-
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
sagt?
-
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 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:~ $
-
systemctl status iobroker.service
-
pi@raspberrypi:~ $ systemctl status iobroker.service ● iobroker.service - ioBroker Server Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor pres> Active: active (running) since Tue 2022-12-20 22:03:13 CET; 8min ago Docs: http://iobroker.net Main PID: 7918 (iobroker.js-con) Tasks: 11 (limit: 3720) CPU: 10.455s CGroup: /system.slice/iobroker.service └─7918 iobroker.js-controller Dec 20 22:03:13 raspberrypi systemd[1]: Started ioBroker Server. Dec 20 22:03:15 raspberrypi sudo[7967]: iobroker : PWD=/ ; USER=root ; COMMAND=> Dec 20 22:03:15 raspberrypi sudo[7967]: pam_unix(sudo:session): session opened > Dec 20 22:03:15 raspberrypi sudo[7967]: pam_unix(sudo:session): session closed > Dec 20 22:03:16 raspberrypi bash[7918]: object system.meta.uuid created: 9c0c44> Dec 20 22:03:16 raspberrypi bash[7918]: object system.user.admin created lines 1-16/16 (END)...skipping... ● iobroker.service - ioBroker Server Loaded: loaded (/lib/systemd/system/iobroker.service; enabled; vendor pres> Active: active (running) since Tue 2022-12-20 22:03:13 CET; 8min ago Docs: http://iobroker.net Main PID: 7918 (iobroker.js-con) Tasks: 11 (limit: 3720) CPU: 10.455s CGroup: /system.slice/iobroker.service └─7918 iobroker.js-controller Dec 20 22:03:13 raspberrypi systemd[1]: Started ioBroker Server. Dec 20 22:03:15 raspberrypi sudo[7967]: iobroker : PWD=/ ; USER=root ; COMMAND=> Dec 20 22:03:15 raspberrypi sudo[7967]: pam_unix(sudo:session): session opened > Dec 20 22:03:15 raspberrypi sudo[7967]: pam_unix(sudo:session): session closed > Dec 20 22:03:16 raspberrypi bash[7918]: object system.meta.uuid created: 9c0c44> Dec 20 22:03:16 raspberrypi bash[7918]: object system.user.admin created ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ lines 1-16/16 (END)
-
@xerxes55 sagte in ioBroker Installation npm Err!:
sudo systemctl stop iobroker iobroker fix sudo systemctl start iobroker
-
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:~ $