Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • 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. ioBroker Allgemein
  4. [gelöst] Fehler bei Versuch, mongodb aus npm zu löschen

NEWS

  • Neues YouTube-Video: Visualisierung im Devices-Adapter
    BluefoxB
    Bluefox
    11
    1
    315

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    1.9k

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    11
    1
    785

[gelöst] Fehler bei Versuch, mongodb aus npm zu löschen

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
npmnpm fehler
16 Beiträge 3 Kommentatoren 1.1k Aufrufe 3 Beobachtet
  • Ä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.
  • LatziL Latzi

    Hallo zusammen,

    beim Versuch, mongodb von meinem System zu entfernen, tritt folgender Fehler auf:

    pi@Pi4-Server:/opt/iobroker $ npm uninstall mongodb
    npm ERR! code ELOOP
    npm ERR! syscall open
    npm ERR! path /opt/iobroker/node_modules/xml2js/package.json
    npm ERR! errno -40
    npm ERR! ELOOP: too many symbolic links encountered, open '/opt/iobroker/node_modules/xml2js/package.json'
    

    Das Problem mit der mongodb lib hatte ich nach dem Update des JS-Controllers auf 4.0.15 mit folgender Meldung:

    (node:27521) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
    (Use `node --trace-warnings ...` to show where the warning was created)
    (node:27521) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
    (node:27521) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
    (node:27521) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
    

    @apollon77 ortet das Problem in den node_modules, siehe Thread JS-Controller 4

    Fehler tritt nur am Master meines Multihost-Systems auf (dort war mal testweise node-red installiert), beim Slave kein Problem in der Art.

    Ist das ganze nur ein "Schönheitsfehler" oder tickt ein Bömbchen?
    Was kann ich tun?

    System Master:
    Raspberry Pi4 4 GB
    Nodejs: 14.19.0
    NPM: 6.14.16
    JS-Controller: 4.0.15

    Vielen Dank für eure Unterstützung!

    Thomas BraunT Online
    Thomas BraunT Online
    Thomas Braun
    Most Active
    schrieb am zuletzt editiert von
    #2

    @latzi
    Nimm mal xml2js aus dem Spiel.

    Linux-Werkzeugkasten:
    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
    NodeJS Fixer Skript:
    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

    LatziL 1 Antwort Letzte Antwort
    0
    • Thomas BraunT Thomas Braun

      @latzi
      Nimm mal xml2js aus dem Spiel.

      LatziL Online
      LatziL Online
      Latzi
      schrieb am zuletzt editiert von Latzi
      #3

      @thomas-braun
      leider geht das auch nicht, gleicher Fehler beim Versuch npm uninstall xml2js:

      pi@Pi4-Server:/opt/iobroker $ npm uninstall xml2js
      npm ERR! code ELOOP
      npm ERR! syscall open
      npm ERR! path /opt/iobroker/node_modules/xml2js/package.json
      npm ERR! errno -40
      npm ERR! ELOOP: too many symbolic links encountered, open '/opt/iobroker/node_modules/xml2js/package.json'
      
      

      Hier das node_modules-Verzeichnis bezüglich xml2js:

      pi@Pi4-Server:/opt/iobroker/node_modules $ ls -la|grep xml2js
      lrwxrwxrwx     1 iobroker iobroker     6 Apr 16  2021 xml2js -> xml2js
      drwxrwxr-x+    2 iobroker iobroker  4096 Mai 12  2020 xml2json-light
      
      Thomas BraunT 1 Antwort Letzte Antwort
      0
      • LatziL Latzi

        @thomas-braun
        leider geht das auch nicht, gleicher Fehler beim Versuch npm uninstall xml2js:

        pi@Pi4-Server:/opt/iobroker $ npm uninstall xml2js
        npm ERR! code ELOOP
        npm ERR! syscall open
        npm ERR! path /opt/iobroker/node_modules/xml2js/package.json
        npm ERR! errno -40
        npm ERR! ELOOP: too many symbolic links encountered, open '/opt/iobroker/node_modules/xml2js/package.json'
        
        

        Hier das node_modules-Verzeichnis bezüglich xml2js:

        pi@Pi4-Server:/opt/iobroker/node_modules $ ls -la|grep xml2js
        lrwxrwxrwx     1 iobroker iobroker     6 Apr 16  2021 xml2js -> xml2js
        drwxrwxr-x+    2 iobroker iobroker  4096 Mai 12  2020 xml2json-light
        
        Thomas BraunT Online
        Thomas BraunT Online
        Thomas Braun
        Most Active
        schrieb am zuletzt editiert von
        #4

        @latzi sagte in Fehler bei Versuch, mongodb aus npm zu löschen:

        xml2js

        Lösch den Link mal. Das ist der Loop.

        Linux-Werkzeugkasten:
        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
        NodeJS Fixer Skript:
        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

        LatziL 1 Antwort Letzte Antwort
        1
        • Thomas BraunT Thomas Braun

          @latzi sagte in Fehler bei Versuch, mongodb aus npm zu löschen:

          xml2js

          Lösch den Link mal. Das ist der Loop.

          LatziL Online
          LatziL Online
          Latzi
          schrieb am zuletzt editiert von
          #5

          @thomas-braun
          Der Loop ist weg, doch das Löschen funktioniert nicht, jetzt fehlt xml2js:

          pi@Pi4-Server:/opt/iobroker $ npm uninstall mongodb
          npm ERR! code ENOLOCAL
          npm ERR! Could not install from "node_modules/xml2js" as it does not contain a package.json file.
          
          

          Soll ich xml2js installieren und nochmal versuchen?

          Thomas BraunT 1 Antwort Letzte Antwort
          0
          • LatziL Latzi

            @thomas-braun
            Der Loop ist weg, doch das Löschen funktioniert nicht, jetzt fehlt xml2js:

            pi@Pi4-Server:/opt/iobroker $ npm uninstall mongodb
            npm ERR! code ENOLOCAL
            npm ERR! Could not install from "node_modules/xml2js" as it does not contain a package.json file.
            
            

            Soll ich xml2js installieren und nochmal versuchen?

            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            schrieb am zuletzt editiert von
            #6

            @latzi
            Ja, versuch mal.

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            LatziL 1 Antwort Letzte Antwort
            0
            • Thomas BraunT Thomas Braun

              @latzi
              Ja, versuch mal.

              LatziL Online
              LatziL Online
              Latzi
              schrieb am zuletzt editiert von
              #7

              @thomas-braun
              läuft leider nicht, keine Ahnung warum!

              pi@Pi4-Server:/opt/iobroker $ npm install xml2js
              npm ERR! code ENOLOCAL
              npm ERR! Could not install from "node_modules/xml2js" as it does not contain a package.json file.
              
              
              1 Antwort Letzte Antwort
              0
              • LatziL Online
                LatziL Online
                Latzi
                schrieb am zuletzt editiert von
                #8

                Jetzt hab ich mal ganz frech versucht, mongodb zu installieren, da bekomme ich folgendes:

                pi@Pi4-Server:/opt/iobroker $ npm install mongodb
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.7 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                npm WARN http-cookie-agent@1.0.4 requires a peer of tough-cookie@^4.0.0 but none is installed. You must install peer dependencies yourself.
                npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
                
                + mongodb@4.4.0
                added 12 packages from 13 contributors, removed 2 packages and updated 2 packages in 58.654s
                
                149 packages are looking for funding
                  run `npm fund` for details
                
                

                Löschen funktioniert trotzdem nicht :-(

                pi@Pi4-Server:/opt/iobroker $ npm uninstall mongodb
                npm ERR! code ENOLOCAL
                npm ERR! Could not install from "node_modules/xml2js" as it does not contain a package.json file.
                
                
                apollon77A 1 Antwort Letzte Antwort
                0
                • LatziL Latzi

                  Jetzt hab ich mal ganz frech versucht, mongodb zu installieren, da bekomme ich folgendes:

                  pi@Pi4-Server:/opt/iobroker $ npm install mongodb
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.7 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                  npm WARN http-cookie-agent@1.0.4 requires a peer of tough-cookie@^4.0.0 but none is installed. You must install peer dependencies yourself.
                  npm WARN svg-inline-react@1.0.3 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
                  
                  + mongodb@4.4.0
                  added 12 packages from 13 contributors, removed 2 packages and updated 2 packages in 58.654s
                  
                  149 packages are looking for funding
                    run `npm fund` for details
                  
                  

                  Löschen funktioniert trotzdem nicht :-(

                  pi@Pi4-Server:/opt/iobroker $ npm uninstall mongodb
                  npm ERR! code ENOLOCAL
                  npm ERR! Could not install from "node_modules/xml2js" as it does not contain a package.json file.
                  
                  
                  apollon77A Offline
                  apollon77A Offline
                  apollon77
                  schrieb am zuletzt editiert von
                  #9

                  @latzi Köasch mal das xml2js verzeichnis .. Wie schon im anderen Thread gesagt, ggf falls Adapter danach nicht tun die neu installieren

                  Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                  • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                  • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                  LatziL 1 Antwort Letzte Antwort
                  0
                  • apollon77A apollon77

                    @latzi Köasch mal das xml2js verzeichnis .. Wie schon im anderen Thread gesagt, ggf falls Adapter danach nicht tun die neu installieren

                    LatziL Online
                    LatziL Online
                    Latzi
                    schrieb am zuletzt editiert von
                    #10

                    @apollon77
                    hab ich schon, hilft leider nicht :-(

                    apollon77A 1 Antwort Letzte Antwort
                    0
                    • LatziL Latzi

                      @apollon77
                      hab ich schon, hilft leider nicht :-(

                      apollon77A Offline
                      apollon77A Offline
                      apollon77
                      schrieb am zuletzt editiert von
                      #11

                      @latzi Wie ändern sich dann meldugen? Weill Wenns nicht mehr da ist kann er nicht meckern

                      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                      LatziL 1 Antwort Letzte Antwort
                      0
                      • apollon77A apollon77

                        @latzi Wie ändern sich dann meldugen? Weill Wenns nicht mehr da ist kann er nicht meckern

                        LatziL Online
                        LatziL Online
                        Latzi
                        schrieb am zuletzt editiert von
                        #12

                        @apollon77
                        Der Loop ist weg (nach dem Löschen von xml2js-Verzeichnis), doch das Löschen von mongodb funktioniert nicht, jetzt fehlt xml2js:

                        pi@Pi4-Server:/opt/iobroker $ npm uninstall mongodb
                        npm ERR! code ENOLOCAL
                        npm ERR! Could not install from "node_modules/xml2js" as it does not contain a package.json file.
                        
                        apollon77A 1 Antwort Letzte Antwort
                        0
                        • LatziL Latzi

                          @apollon77
                          Der Loop ist weg (nach dem Löschen von xml2js-Verzeichnis), doch das Löschen von mongodb funktioniert nicht, jetzt fehlt xml2js:

                          pi@Pi4-Server:/opt/iobroker $ npm uninstall mongodb
                          npm ERR! code ENOLOCAL
                          npm ERR! Could not install from "node_modules/xml2js" as it does not contain a package.json file.
                          
                          apollon77A Offline
                          apollon77A Offline
                          apollon77
                          schrieb am zuletzt editiert von
                          #13

                          @latzi er meckert das Verzeichnis an trotz das du es gelöscht hast ?

                          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                          LatziL 1 Antwort Letzte Antwort
                          0
                          • apollon77A apollon77

                            @latzi er meckert das Verzeichnis an trotz das du es gelöscht hast ?

                            LatziL Online
                            LatziL Online
                            Latzi
                            schrieb am zuletzt editiert von
                            #14

                            @apollon77
                            Ja, seltsam oder?

                            apollon77A 1 Antwort Letzte Antwort
                            0
                            • LatziL Latzi

                              @apollon77
                              Ja, seltsam oder?

                              apollon77A Offline
                              apollon77A Offline
                              apollon77
                              schrieb am zuletzt editiert von
                              #15

                              @latzi dann fällt mir nur noch eins ein. Lösche das mongodb Verzeichnis manuell und danach ggf „npm prune“ ausführen. Der sollte aufräumen ;-)

                              Falls alles blöd ist dann Node_modules komplett löschen. Den js-Controller manuell installieren und dan man starten. Dann wird alles neu frisch installiert

                              Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                              • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                              • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                              LatziL 1 Antwort Letzte Antwort
                              0
                              • apollon77A apollon77

                                @latzi dann fällt mir nur noch eins ein. Lösche das mongodb Verzeichnis manuell und danach ggf „npm prune“ ausführen. Der sollte aufräumen ;-)

                                Falls alles blöd ist dann Node_modules komplett löschen. Den js-Controller manuell installieren und dan man starten. Dann wird alles neu frisch installiert

                                LatziL Online
                                LatziL Online
                                Latzi
                                schrieb am zuletzt editiert von
                                #16

                                @apollon77
                                👏 👏 👏
                                Das war´s , schaut gut aus!
                                Vielen Dank Ingo!!!

                                1 Antwort Letzte Antwort
                                1

                                Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                                Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                                Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                                Registrieren Anmelden
                                Antworten
                                • In einem neuen Thema antworten
                                Anmelden zum Antworten
                                • Älteste zuerst
                                • Neuste zuerst
                                • Meiste Stimmen


                                Support us

                                ioBroker
                                Community Adapters
                                Donate
                                FAQ Cloud / IOT
                                HowTo: Node.js-Update
                                HowTo: Backup/Restore
                                Downloads
                                BLOG

                                360

                                Online

                                32.9k

                                Benutzer

                                83.0k

                                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