Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Einsteigerfragen
  4. Installation
  5. Neuinstallation - iobroker.js "MODULE_NOT_FOUND"

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.3k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.3k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.6k

Neuinstallation - iobroker.js "MODULE_NOT_FOUND"

Scheduled Pinned Locked Moved Installation
8 Posts 3 Posters 506 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    noob0ne
    wrote on last edited by Homoran
    #1

    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 Ro75R 2 Replies Last reply
    0
    • N noob0ne

      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 Offline
      T Offline
      TT-Tom
      wrote on last edited by
      #2

      @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

      Gruß Tom
      https://github.com/tt-tom17
      Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

      NSPanel Script Wiki
      https://github.com/joBr99/nspanel-lovelace-ui/wiki

      NSPanel Adapter Wiki
      https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

      N 1 Reply Last reply
      0
      • T TT-Tom

        @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 Offline
        N Offline
        noob0ne
        wrote on last edited by
        #3

        @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
        0
        • N noob0ne

          @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 Offline
          T Offline
          TT-Tom
          wrote on last edited by
          #4

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

          Gruß Tom
          https://github.com/tt-tom17
          Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

          NSPanel Script Wiki
          https://github.com/joBr99/nspanel-lovelace-ui/wiki

          NSPanel Adapter Wiki
          https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

          N 1 Reply Last reply
          0
          • T TT-Tom

            @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 Offline
            N Offline
            noob0ne
            wrote on last edited by
            #5

            @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
            0
            • T Offline
              T Offline
              TT-Tom
              wrote on last edited by
              #6

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

              Gruß Tom
              https://github.com/tt-tom17
              Wenn meine Hilfe erfolgreich war, benutze bitte das Voting unten rechts im Beitrag

              NSPanel Script Wiki
              https://github.com/joBr99/nspanel-lovelace-ui/wiki

              NSPanel Adapter Wiki
              https://github.com/ticaki/ioBroker.nspanel-lovelace-ui/wiki

              N 1 Reply Last reply
              0
              • T TT-Tom

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

                N Offline
                N Offline
                noob0ne
                wrote on last edited by
                #7

                @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
                1
                • N noob0ne

                  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

                  Ro75R Offline
                  Ro75R Offline
                  Ro75
                  wrote on last edited by
                  #8

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

                  SERVER = Beelink U59 16GB DDR4 RAM 512GB SSD, FB 7490, FritzDect 200+301+440, ConBee II, Zigbee Aqara Sensoren + NOUS A1Z, NOUS A1T, Philips Hue ** ioBroker, REDIS, influxdb2, Grafana, PiHole, Plex-Mediaserver, paperless-ngx (Docker), MariaDB + phpmyadmin *** VIS-Runtime = Intel NUC 8GB RAM 128GB SSD + 24" Touchscreen

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  Support us

                  ioBroker
                  Community Adapters
                  Donate

                  490

                  Online

                  32.5k

                  Users

                  81.7k

                  Topics

                  1.3m

                  Posts
                  Community
                  Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                  ioBroker Community 2014-2025
                  logo
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Home
                  • Recent
                  • Tags
                  • Unread 0
                  • Categories
                  • Unreplied
                  • Popular
                  • GitHub
                  • Docu
                  • Hilfe