Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. iobroker löscht beim Stoppen node-modules?

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    16
    1
    279

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    4.7k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.3k

iobroker löscht beim Stoppen node-modules?

Geplant Angeheftet Gesperrt Verschoben Error/Bug
fullybrowser adapternodemodules
1 Beiträge 1 Kommentatoren 59 Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • ? Offline
    ? Offline
    Ein ehemaliger Benutzer
    schrieb am zuletzt editiert von
    #1
    Systemdata Bitte Ausfüllen
    Hardwaresystem: Pi4
    Arbeitsspeicher: 4GB
    Festplattenart: HDD
    Betriebssystem: Raspbian
    Node-Version: 12.22.2
    Nodejs-Version: 12.22.2
    NPM-Version: 6.14.13
    Installationsart: Skript
    Image genutzt: Nein

    Hallo liebe Community,
    als stiller Mitleser hat sich bei mir nun doch nach einem Neuaufsetzen meines Systems ein Fehler eingestellt, bei dem ich selbst nicht weiter komme.
    Der Adapter fullybrowser ließ sich wunderbar installieren und konfigurieren. Nach einem Aufruf von

    iobroker stop
    

    und anschließendem

    iobroker start
    

    kann der Adapter aber nicht mehr gestartet werden, weil ihm ein Module fehlt:

    2021-07-22 16:43:23.006 - error: host.ioBroker-RasPi Caught by controller[0]: internal/modules/cjs/loader.js:818
    2021-07-22 16:43:23.007 - error: host.ioBroker-RasPi Caught by controller[0]: throw err;
    2021-07-22 16:43:23.007 - error: host.ioBroker-RasPi Caught by controller[0]: ^
    2021-07-22 16:43:23.008 - error: host.ioBroker-RasPi Caught by controller[0]: Error: Cannot find module './adapters/http'
    2021-07-22 16:43:23.008 - error: host.ioBroker-RasPi Caught by controller[0]: Require stack:
    2021-07-22 16:43:23.008 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/lib/defaults.js
    2021-07-22 16:43:23.009 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/lib/core/dispatchRequest.js
    2021-07-22 16:43:23.009 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/lib/core/Axios.js
    2021-07-22 16:43:23.009 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/lib/axios.js
    2021-07-22 16:43:23.010 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/axios/index.js
    2021-07-22 16:43:23.010 - error: host.ioBroker-RasPi Caught by controller[0]: - /opt/iobroker/node_modules/iobroker.fullybrowser/main.js
    2021-07-22 16:43:23.010 - error: host.ioBroker-RasPi Caught by controller[0]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    2021-07-22 16:43:23.010 - error: host.ioBroker-RasPi Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    2021-07-22 16:43:23.011 - error: host.ioBroker-RasPi Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:887:19)
    2021-07-22 16:43:23.011 - error: host.ioBroker-RasPi Caught by controller[0]: at require (internal/modules/cjs/helpers.js:74:18)
    2021-07-22 16:43:23.011 - error: host.ioBroker-RasPi Caught by controller[0]: at getDefaultAdapter (/opt/iobroker/node_modules/axios/lib/defaults.js:23:15)
    2021-07-22 16:43:23.011 - error: host.ioBroker-RasPi Caught by controller[0]: at Object. (/opt/iobroker/node_modules/axios/lib/defaults.js:29:12)
    2021-07-22 16:43:23.012 - error: host.ioBroker-RasPi Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:999:30)
    2021-07-22 16:43:23.012 - error: host.ioBroker-RasPi Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    2021-07-22 16:43:23.012 - error: host.ioBroker-RasPi Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:863:32)
    2021-07-22 16:43:23.013 - error: host.ioBroker-RasPi Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:708:14) {
    2021-07-22 16:43:23.013 - error: host.ioBroker-RasPi Caught by controller[0]: code: 'MODULE_NOT_FOUND',
    2021-07-22 16:43:23.013 - error: host.ioBroker-RasPi Caught by controller[0]: requireStack: [
    2021-07-22 16:43:23.014 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/lib/defaults.js',
    2021-07-22 16:43:23.014 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/lib/core/dispatchRequest.js',
    2021-07-22 16:43:23.014 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/lib/core/Axios.js',
    2021-07-22 16:43:23.014 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/lib/axios.js',
    2021-07-22 16:43:23.015 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/axios/index.js',
    2021-07-22 16:43:23.015 - error: host.ioBroker-RasPi Caught by controller[0]: '/opt/iobroker/node_modules/iobroker.fullybrowser/main.js'
    2021-07-22 16:43:23.015 - error: host.ioBroker-RasPi Caught by controller[0]: ]
    2021-07-22 16:43:23.015 - error: host.ioBroker-RasPi Caught by controller[0]: }
    

    Schaut man sich nach dem Stoppen von iobroker in der Console den Pfad des Adapters an, fällt auf, dass hier einiges fehlt:

    pi@ioBroker-RasPi:/opt/iobroker/node_modules/iobroker.fullybrowser $ ls -l
    insgesamt 172
    drwxr-xr-x+ 2 iobroker iobroker   4096 Jul 22 16:44 admin
    -rw-rw-r--+ 1 iobroker iobroker      1 Jul 22 16:45 iob_npm.done
    -rw-r--r--+ 1 iobroker iobroker   4762 Okt 26  1985 io-package.json
    -rw-r--r--+ 1 iobroker iobroker   1125 Okt 26  1985 LICENSE
    -rw-r--r--+ 1 iobroker iobroker  13692 Okt 26  1985 main.js
    -rw-r--r--+ 1 iobroker iobroker   1956 Jul 22 16:44 package.json
    -rw-rw-r--+ 1 iobroker iobroker 129404 Jul 22 16:45 package-lock.json
    -rw-r--r--+ 1 iobroker iobroker   2909 Okt 26  1985 README.md
    

    Bei anderen Adaptern sieht das Verzeichnis so aus:

    pi@ioBroker-RasPi:/opt/iobroker/node_modules/iobroker.daswetter $ ls -l
    insgesamt 420
    drwxrwxr-x+ 3 iobroker iobroker   4096 Jul 21 17:26 admin
    -rw-rwxr--+ 1 iobroker iobroker  40690 Okt 26  1985 daswetter.njsproj
    drwxrwxr-x+ 2 iobroker iobroker   4096 Jul 21 17:26 docs
    -rw-rwxr--+ 1 iobroker iobroker      1 Jul 21 17:26 iob_npm.done
    -rw-rwxr--+ 1 iobroker iobroker   6133 Jul 21 17:26 io-package.json
    drwxrwxr-x+ 2 iobroker iobroker   4096 Jul 21 17:26 lib
    -rw-rwxr--+ 1 iobroker iobroker   1084 Okt 26  1985 LICENSE
    -rw-rwxr--+ 1 iobroker iobroker   1026 Okt 26  1985 log.txt
    -rw-rwxr--+ 1 iobroker iobroker  91541 Okt 26  1985 main.js
    -rw-rwxr--+ 1 iobroker iobroker 163747 Okt 26  1985 main_neu.js
    drwxrwxr-x+ 5 iobroker iobroker   4096 Jul 21 17:26 node_modules
    -rw-rwxr--+ 1 iobroker iobroker   2532 Jul 21 17:26 package.json
    -rw-rwxr--+ 1 iobroker iobroker   7553 Okt 26  1985 README.md
    -rw-rwxr--+ 1 iobroker iobroker  20981 Okt 26  1985 readme.txt
    -rw-rwxr--+ 1 iobroker iobroker      0 Okt 26  1985 test2.js
    -rw-rwxr--+ 1 iobroker iobroker  47074 Okt 26  1985 test.js
    -rw-rwxr--+ 1 iobroker iobroker      6 Okt 26  1985 todo.txt
    drwxrwxr-x+ 3 iobroker iobroker   4096 Jul 21 17:26 typings
    

    Kurioserweise lässt sich das Ganze beheben, indem der komplette Adapter samt Instanz über die Adminseite im Browser gelöscht und anschließend in der Konsole (und nicht über die Adminseite!) mit

    pi@ioBroker-RasPi:/opt/iobroker $ npm install iobroker.fullybrowser@2.0.8 --production
    + iobroker.fullybrowser@2.0.8
    removed 7 packages and updated 1 package in 11.605s
    
    26 packages are looking for funding
      run `npm fund` for details
    

    installiert wird. Legt man nun eine Instanz an, kann man wieder seine Daten konfigurieren und bis zum nächsten Neustart läuft der Adapter.
    Jemand eine Idee und/oder Lösungsvorschläge?

    PS: Bevor jemand fragt

    pi@ioBroker-RasPi:/opt/iobroker $ which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && sudo apt update && apt policy nodejs
    /usr/bin/nodejs
    /usr/bin/node
    /usr/bin/npm
    v12.22.2
    v12.22.2
    6.14.13
    OK:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
    OK:2 http://archive.raspberrypi.org/debian buster InRelease
    OK:3 https://deb.nodesource.com/node_12.x buster InRelease
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut.
    Statusinformationen werden eingelesen.... Fertig
    Alle Pakete sind aktuell.
    OK:1 http://archive.raspberrypi.org/debian buster InRelease
    OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
    OK:3 https://deb.nodesource.com/node_12.x buster InRelease
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut.
    Statusinformationen werden eingelesen.... Fertig
    Alle Pakete sind aktuell.
    nodejs:
      Installiert:           12.22.2-1nodesource1
      Installationskandidat: 12.22.2-1nodesource1
      Versionstabelle:
     *** 12.22.2-1nodesource1 500
            500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
            100 /var/lib/dpkg/status
         10.24.0~dfsg-1~deb10u1 500
            500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
    
    1 Antwort Letzte Antwort
    0
    Antworten
    • In einem neuen Thema antworten
    Anmelden zum Antworten
    • Älteste zuerst
    • Neuste zuerst
    • Meiste Stimmen


    Support us

    ioBroker
    Community Adapters
    Donate

    444

    Online

    32.7k

    Benutzer

    82.5k

    Themen

    1.3m

    Beiträge
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
    ioBroker Community 2014-2025
    logo
    • Anmelden

    • Du hast noch kein Konto? Registrieren

    • Anmelden oder registrieren, um zu suchen
    • Erster Beitrag
      Letzter Beitrag
    0
    • Home
    • Aktuell
    • Tags
    • Ungelesen 0
    • Kategorien
    • Unreplied
    • Beliebt
    • GitHub
    • Docu
    • Hilfe