Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. Neuinstallation - iobroker.js "MODULE_NOT_FOUND"

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Neuinstallation - iobroker.js "MODULE_NOT_FOUND"

    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      noob0ne last edited by Homoran

      Ich wollte mein System auf einer neuen SD-Karte frisch aufsetzen und habe mich dabei an die folgende Anleitung (https://forum.iobroker.net/topic/51869/installation-auf-raspi-einfacher-geht-s-nicht/1) gehalten.

      Das ganze soll in einem Raspberry 3B verbaut werden. Als OS habe ich "Raspberry Pi OS Lite (64-bit)" ausgewählt.

      Allerdings ist trotz erfolgreicher Abschlussmeldung der webserver im Anschluss nicht erreichbar.

      curl -sSLf https://iobroker.net/install.sh | bash -
      library: loaded
      Library version=2024-10-22
      
      ==========================================================================
      
          Welcome to the ioBroker installer!
          Installer version: 2024-10-22
          
          You might need to enter your password a couple of times.
      
      ==========================================================================
      
      
      ==========================================================================
          Installing prerequisites (1/4)
      ==========================================================================
      
      Hit:1 http://phoscon.de/apt/deconz generic InRelease
      Hit:2 http://deb.debian.org/debian bookworm InRelease                                                                                        
      Hit:3 http://deb.debian.org/debian-security bookworm-security InRelease                                                                      
      Hit:4 http://deb.debian.org/debian bookworm-updates InRelease                                                                                
      Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease                                                                               
      Hit:6 https://deb.nodesource.com/node_20.x nodistro InRelease                                                                                
      Reading package lists... Done                                
      
      ==========================================================================
          Creating ioBroker user and directory (2/4)
      ==========================================================================
      
      Created /etc/sudoers.d/iobroker
      Directory /opt/iobroker created
      
      ==========================================================================
          Installing ioBroker (3/4)
      ==========================================================================
      
      npm error Invalid or unexpected token
      npm error A complete log of this run can be found in: /home/felix/.npm/_logs/2024-12-28T21_26_18_682Z-debug-0.log
      
      ==========================================================================
          Finalizing installation (4/4)
      ==========================================================================
      
      Enabling autostart...
      Autostart enabled!
      Fixing directory permissions...
      
      ==========================================================================
      
          ioBroker was installed successfully
          Open http://192.168.2.22:8081 in a browser and start configuring!
      
      ==========================================================================
      
      
      You need to re-login before doing anything else on the console!
      
      

      npm und node wurden installiert:

      npm -v
      10.8.2
      node -v
      v20.18.1
      

      iobroker.js kann nicht gefunden werden:

      iobroker status
      node:internal/modules/cjs/loader:1228
        throw err;
        ^
      
      Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
          at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
          at Module._load (node:internal/modules/cjs/loader:1051:27)
          at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12)
          at node:internal/main/run_main_module:28:49 {
        code: 'MODULE_NOT_FOUND',
        requireStack: []
      }
      
      Node.js v20.18.1
      
      

      Auch wenn ich den js-controller manuell installieren möchte kommt die gleiche Fehlermeldung:

      sudo -H -u iobroker npm install iobroker.js-controller
      npm error Invalid or unexpected token
      npm error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-12-28T21_40_20_628Z-debug-0.log
      

      Log-Datei:

      0 verbose cli /usr/bin/node /usr/bin/npm
      1 info using npm@10.8.2
      2 info using node@v20.18.1
      3 silly config load:file:/usr/lib/node_modules/npm/npmrc
      4 silly config load:file:/opt/iobroker/.npmrc
      5 silly config load:file:/home/iobroker/.npmrc
      6 silly config load:file:/usr/etc/npmrc
      7 verbose title npm install iobroker.js-controller
      8 verbose argv "install" "iobroker.js-controller"
      9 verbose logfile logs-max:10 dir:/home/iobroker/.npm/_logs/2024-12-28T21_40_20_628Z-
      10 verbose logfile /home/iobroker/.npm/_logs/2024-12-28T21_40_20_628Z-debug-0.log
      11 silly logfile done cleaning log files
      12 verbose stack /usr/lib/node_modules/npm/node_modules/pacote/lib/fetcher.js:1
      12 verbose stack �^E^T^F�^E�^P^U^B%�^B��^Fb
      12 verbose stack
      12 verbose stack
      12 verbose stack SyntaxError: Invalid or unexpected token
      12 verbose stack     at wrapSafe (node:internal/modules/cjs/loader:1378:20)
      12 verbose stack     at Module._compile (node:internal/modules/cjs/loader:1428:41)
      12 verbose stack     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
      12 verbose stack     at Module.load (node:internal/modules/cjs/loader:1288:32)
      12 verbose stack     at Module._load (node:internal/modules/cjs/loader:1104:12)
      12 verbose stack     at Module.require (node:internal/modules/cjs/loader:1311:19)
      12 verbose stack     at require (node:internal/modules/helpers:179:18)
      12 verbose stack     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/pacote/lib/index.js:1:17)
      12 verbose stack     at Module._compile (node:internal/modules/cjs/loader:1469:14)
      12 verbose stack     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
      13 error Invalid or unexpected token
      14 verbose cwd /opt/iobroker
      15 verbose os Linux 6.6.62+rpt-rpi-v8
      16 verbose node v20.18.1
      17 verbose npm  v10.8.2
      18 verbose exit 1
      19 verbose code 1
      20 error A complete log of this run can be found in: /home/iobroker/.npm/_logs/2024-12-28T21_40_20_628Z-debug-0.log
      
      

      Vielen Dank für die Hilfe.

      Liebe Grüße
      Felix

      T Ro75 2 Replies Last reply Reply Quote 0
      • T
        TT-Tom @noob0ne last edited by

        @noob0ne sagte in Neuinstallation - iobroker.js "MODULE_NOT_FOUND":

        npm error Invalid or unexpected token
        npm error A complete log of this run can be found in: /home/felix/.npm/_logs/2024-12-28T21_26_18_682Z-debug-0.log
        

        da waren doch schon Fehler bei der Installation, was steht den in dem Log

        N 1 Reply Last reply Reply Quote 0
        • N
          noob0ne @TT-Tom last edited by

          @tt-tom said in Neuinstallation - iobroker.js "MODULE_NOT_FOUND":

          da waren doch schon Fehler bei der Installation, was steht den in dem Log

          (fast?) das gleiche wie in dem anderen logfile

          0 verbose cli /usr/bin/node /usr/bin/npm
          1 info using npm@10.8.2
          2 info using node@v20.18.1
          3 silly config load:file:/usr/lib/node_modules/npm/npmrc
          4 warn config production Use `--omit=dev` instead.
          5 silly config load:file:/opt/iobroker/.npmrc
          6 silly config load:file:/home/felix/.npmrc
          7 silly config load:file:/usr/etc/npmrc
          8 verbose title npm i
          9 verbose argv "i" "--production" "--loglevel" "error" "--unsafe-perm"
          10 verbose logfile logs-max:10 dir:/home/felix/.npm/_logs/2024-12-28T21_26_18_682Z-
          11 verbose logfile /home/felix/.npm/_logs/2024-12-28T21_26_18_682Z-debug-0.log
          12 silly logfile done cleaning log files
          13 verbose stack /usr/lib/node_modules/npm/node_modules/pacote/lib/fetcher.js:1
          13 verbose stack �^E^T^F�^E�^P^U^B%�^B��^Fb
          13 verbose stack
          13 verbose stack
          13 verbose stack SyntaxError: Invalid or unexpected token
          13 verbose stack     at wrapSafe (node:internal/modules/cjs/loader:1378:20)
          13 verbose stack     at Module._compile (node:internal/modules/cjs/loader:1428:41)
          13 verbose stack     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
          13 verbose stack     at Module.load (node:internal/modules/cjs/loader:1288:32)
          13 verbose stack     at Module._load (node:internal/modules/cjs/loader:1104:12)
          13 verbose stack     at Module.require (node:internal/modules/cjs/loader:1311:19)
          13 verbose stack     at require (node:internal/modules/helpers:179:18)
          13 verbose stack     at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/pacote/lib/index.js:1:17)
          13 verbose stack     at Module._compile (node:internal/modules/cjs/loader:1469:14)
          13 verbose stack     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
          14 error Invalid or unexpected token
          15 verbose cwd /opt/iobroker
          16 verbose os Linux 6.6.62+rpt-rpi-v8
          17 verbose node v20.18.1
          18 verbose npm  v10.8.2
          19 verbose exit 1
          20 verbose code 1
          21 error A complete log of this run can be found in: /home/felix/.npm/_logs/2024-12-28T21_26_18_682Z-debug-0.log
          
          
          T 1 Reply Last reply Reply Quote 0
          • T
            TT-Tom @noob0ne last edited by

            @noob0ne

            ich habe bei mir grade eine Installation durchgeführt, lief komplett durch mit etwas stocken.
            Hast du versucht noch einmal drüber zu installieren?
            Hast du dir ein normalen User angelegt?

            N 1 Reply Last reply Reply Quote 0
            • N
              noob0ne @TT-Tom last edited by

              @tt-tom said in Neuinstallation - iobroker.js "MODULE_NOT_FOUND":

              Hast du versucht noch einmal drüber zu installieren?

              Ja, bringt jedoch keine Änderung:

              felix@iobroker:~ $ curl -sSLf https://iobroker.net/install.sh | bash -
              library: loaded
              Library version=2024-10-22
              
              ==========================================================================
              
                  Welcome to the ioBroker installer!
                  Installer version: 2024-10-22
                  
                  You might need to enter your password a couple of times.
              
              ==========================================================================
              
              
              ==========================================================================
                  Installing prerequisites (1/4)
              ==========================================================================
              
              Hit:1 http://deb.debian.org/debian bookworm InRelease
              Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease                                                 
              Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]                                                 
              Hit:4 http://phoscon.de/apt/deconz generic InRelease                                                                    
              Hit:5 http://archive.raspberrypi.com/debian bookworm InRelease                                                          
              Hit:6 https://deb.nodesource.com/node_20.x nodistro InRelease                                                           
              Fetched 55.4 kB in 3s (19.1 kB/s)                            
              Reading package lists... Done
              
              ==========================================================================
                  Creating ioBroker user and directory (2/4)
              ==========================================================================
              
              Created /etc/sudoers.d/iobroker
              Directory /opt/iobroker created
              
              ==========================================================================
                  Installing ioBroker (3/4)
              ==========================================================================
              
              npm error Invalid or unexpected token
              npm error A complete log of this run can be found in: /home/felix/.npm/_logs/2024-12-29T08_57_14_762Z-debug-0.log
              
              ==========================================================================
                  Finalizing installation (4/4)
              ==========================================================================
              
              Enabling autostart...
              Autostart enabled!
              Fixing directory permissions...
              
              ==========================================================================
              
                  ioBroker was installed successfully
                  Open http://192.168.2.22:8081 in a browser and start configuring!
              
              ==========================================================================
              
              
              You need to re-login before doing anything else on the console!
              

              Hast du dir ein normalen User angelegt?

              Ja den Nutzer "felix" und mit diesem auch alle Befehlt ausgeführt. Den ioBroker-Nutzer habe ich noch nicht angefasst.

              1 Reply Last reply Reply Quote 0
              • T
                TT-Tom last edited by

                @noob0ne
                der User Felix gehört zur Gruppe sudo? Hast du die Kiste mal neu gestartet?

                N 1 Reply Last reply Reply Quote 0
                • N
                  noob0ne @TT-Tom last edited by

                  @tt-tom said in Neuinstallation - iobroker.js "MODULE_NOT_FOUND":

                  der User Felix gehört zur Gruppe sudo?

                  Felix ist der normale Standart-Nutzer, den ich bei der Installation mit dem RaspberryImager erstellt habe.
                  Zu welcher Gruppe er gehört weiß ich nicht. Er kann aber sudo Befehle ausführen.

                  Hast du die Kiste mal neu gestartet?

                  Ja bereits mehrfach ausprobiert.

                  LÖSUNG:
                  Ich habe eine SD-Karte nochmal komplett mit neuem OS aufgesetzt und dann die Installation genau gleich durchgeführt. Jetzt funktioniert alles.

                  Als Hostname hatte ich beim ersten Versuch "iobroker" beim Zweiten dann "smarthome" vielleicht lag es daran?

                  1 Reply Last reply Reply Quote 1
                  • Ro75
                    Ro75 @noob0ne last edited by

                    @noob0ne sagte in Neuinstallation - iobroker.js "MODULE_NOT_FOUND":

                    Raspberry 3B

                    der hat nur 1GB RAM. Da kann schon was in die "Hose" gehen. Die Hardware ist nicht mehr zeitmäßig um "vernünftig" zu arbeiten.

                    Ro75.

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    535
                    Online

                    31.7k
                    Users

                    79.7k
                    Topics

                    1.3m
                    Posts

                    3
                    8
                    277
                    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