Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. ioBroker Installation npm Err!

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    ioBroker Installation npm Err!

    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      Xerxes55 last edited by

      Installation auf Raspi - Einfacher geht's nicht
      [https://forum.iobroker.net/topic/51869/installation-auf-raspi-einfacher-geht-s-nicht]

      Bin nach der Anleitung vorgegangen. So einfach ist das leider nicht. Im Schritt 3 bekomme ich diese Fehler in der Console:

      ============================================================
      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-20T19_58_25_559Z-debug.log

      In dem Verlauf wurden noch paar Fehler gemeldet:

      • apt-get update
        Reading package lists... Done
        E: Could not get lock /var/lib/apt/lists/lock. It is held by process 1360 (packa gekitd)
        N: Be aware that removing the lock file is not a solution and may break your sys tem.
        E: Unable to lock directory /var/lib/apt/lists/
        Error executing command, exiting

      SD Karte ist neu geflasht mit Raspberry PI Imager v1.7.3. Probiert habe ich Versionen 64 und 32 ohne Desktop. Gleiche Probleme.

      Homoran 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active last edited by

        @xerxes55

        nodejs zu alt, vermutlich von dir von Hand installiert bevor der ioBroker-Installer aufgerufen wurde. Der bringt nämlich die richtige Version mit.

        1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Xerxes55 last edited by

          @xerxes55 sagte in ioBroker Installation npm Err!:

          Bin nach der Anleitung vorgegangen.

          wirklich?

          @xerxes55 sagte in ioBroker Installation npm Err!:

          So einfach ist das leider nicht.

          Ich weiss, Code-tags nutzen ist einfacher!

          @xerxes55 sagte in ioBroker Installation npm Err!:

          npm ERR! code EBADENGINE
          npm ERR! engine Unsupported engine

          was hast du denn für einen Server?

          https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge/1

          X 1 Reply Last reply Reply Quote 0
          • X
            Xerxes55 last edited by

            Nein, nichts händisch gemacht. Alles nach der Anleitung gemacht!

            Homoran 1 Reply Last reply Reply Quote 0
            • X
              Xerxes55 @Homoran last edited by

              @homoran
              Raspi 4, SD 16GB.

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Xerxes55 last edited by

                @xerxes55

                sudo apt update
                apt policy nodejs
                

                sagt?

                X 1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @Xerxes55 last edited by

                  @xerxes55 sagte in ioBroker Installation npm Err!:

                  Nein, nichts händisch gemacht. Alles nach der Anleitung gemacht!

                  Dann passiert so etwas nicht!

                  bitte exaktes Vorgehen in code-tags aus der Konsole zeigen

                  1 Reply Last reply Reply Quote 0
                  • X
                    Xerxes55 @Thomas Braun last edited by

                    @thomas-braun

                    pi@raspberrypi:~ $ sudo apt update
                    Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
                    Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                    Reading package lists... Done
                    Building dependency tree... Done
                    Reading state information... Done
                    All packages are up to date.
                    pi@raspberrypi:~ $ apt policy nodejs
                    nodejs:
                      Installed: 12.22.12~dfsg-1~deb11u1
                      Candidate: 12.22.12~dfsg-1~deb11u1
                      Version table:
                     *** 12.22.12~dfsg-1~deb11u1 500
                            500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                            100 /var/lib/dpkg/status
                    pi@raspberrypi:~ $
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Xerxes55 last edited by Thomas Braun

                      @xerxes55

                      NodeJS ist nicht in der richtigen Version angelegt, weil das Repo nicht vorhanden ist. Macht eigentlich der Installer richtig.

                      Installier es von Hand. Siehe meine Signatur.

                      X 1 Reply Last reply Reply Quote 0
                      • X
                        Xerxes55 @Thomas Braun last edited by

                        @thomas-braun
                        Wie gesagt, habe die Befehle aus der Anleitung kopiert und in die Console eingetragen.

                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Xerxes55 last edited by

                          @xerxes55

                          Installier es von Hand.
                          Oder lass den Installer nochmal laufen und lass uns alle Meldungen aus der Konsole dazu sehen.

                          X 2 Replies Last reply Reply Quote 0
                          • X
                            Xerxes55 @Thomas Braun last edited by

                            @thomas-braun
                            habe das aus deiner Signatur ausgeführt. Ist fertig, gab es aber auch Fehler. Du meinst den ioBroker Installer?

                            Thomas Braun 1 Reply Last reply Reply Quote 0
                            • X
                              Xerxes55 @Thomas Braun last edited by

                              @thomas-braun

                              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!

                              Homoran 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Xerxes55 last edited by

                                @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...

                                X 1 Reply Last reply Reply Quote 2
                                • X
                                  Xerxes55 @Thomas Braun last edited by

                                  @thomas-braun
                                  Ich kann nicht alles aus der Konsole kopieren, weil ich nicht so weit Scrollen kann. Benutze Putty.

                                  Thomas Braun 2 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Xerxes55 last edited by

                                    @xerxes55 sagte in ioBroker Installation npm Err!:

                                    Benutze Putty.

                                    Selber schuld. Nimm die PowerShell.
                                    Aber auch in puTTY kann man zurückscrollen.

                                    1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @Xerxes55 last edited by Thomas Braun

                                      @xerxes55

                                      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?

                                      X 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @Xerxes55 last edited by

                                        @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.

                                        1 Reply Last reply Reply Quote 0
                                        • X
                                          Xerxes55 @Thomas Braun last edited by

                                          @thomas-braun

                                          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!

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Xerxes55 last edited by

                                            @xerxes55

                                            
                                            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?

                                            X 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            937
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            50
                                            6697
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo