Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Diskussion zum HowTo nodejs-Installation und upgrade

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Diskussion zum HowTo nodejs-Installation und upgrade

    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Ja.rod @Thomas Braun last edited by

      @thomas-braun
      Auch löschen und Neuinstallation hat nichts gebracht, Zigbee-Adapter bleibt rot und "npm install --production" bringt wieder dieselben Fehler:

      iobroker@iobroker:/opt/iobroker/node_modules/iobroker.zigbee$ npm install --production
      npm WARN config production Use `--omit=dev` instead.
      npm ERR! code ERESOLVE
      npm ERR! ERESOLVE unable to resolve dependency tree
      npm ERR!
      npm ERR! While resolving: iobroker.zigbee@1.7.5
      npm ERR! Found: eslint@7.32.0
      npm ERR! node_modules/eslint
      npm ERR!   dev eslint@"^7.18.0" from the root project
      npm ERR!
      npm ERR! Could not resolve dependency:
      npm ERR! peer eslint@"4.x" from lint-diff@1.2.1
      npm ERR! node_modules/lint-diff
      npm ERR!   dev lint-diff@"*" from the root project
      npm ERR!
      npm ERR! Fix the upstream dependency conflict, or retry
      npm ERR! this command with --force, or --legacy-peer-deps
      npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
      npm ERR!
      npm ERR! See /home/iobroker/.npm/eresolve-report.txt for a full report.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/iobroker/.npm/_logs/2022-07-08T19_36_33_611Z-debug-0.log
      
      
      1 Reply Last reply Reply Quote 0
      • Steff
        Steff last edited by

        @thomas-braun,

        bin gerade auch am prüfen bzgl. Upgrade auf Node 16. Zum Thema "sauberer npm tree" hast du ja in deinem HowTo das folgende Kommando angegeben:

        cd /opt/iobroker
        npm ls | grep -E 'github|ERR'
        

        Ich habe nun diesen Befehl ausgeführt und die folgende Ausgabe erhalten:

        steffen@Smarthome:/opt/iobroker$ npm ls | grep -E 'github.com|ERR'
        [sudo] Passwort für steffen:
        npm ERR! extraneous: @iobroker/adapter-core@1.0.1 /opt/iobroker/node_modules/@iobroker/adapter-core
        npm ERR! extraneous: @types/request@2.48.1 /opt/iobroker/node_modules/@types/request
        npm ERR! extraneous: fsevents /opt/iobroker/node_modules/fsevents
        npm ERR! error in /opt/iobroker/node_modules/fsevents: ENOENT: no such file or directory, open '/opt/iobroker/node_modules/fsevents/package.json'
        npm ERR! extraneous: axios@0.18.0 /opt/iobroker/node_modules/axios
        npm ERR! extraneous: binrpc@3.2.2 /opt/iobroker/node_modules/binrpc
        npm ERR! extraneous: child_process@1.0.2 /opt/iobroker/node_modules/child_process
        npm ERR! extraneous: chokidar@1.7.0 /opt/iobroker/node_modules/chokidar
        npm ERR! extraneous: express-fileupload@0.4.0 /opt/iobroker/node_modules/express-fileupload
        npm ERR! extraneous: iobroker@1.1.2 /opt/iobroker/node_modules/iobroker
        npm ERR! extraneous: node-telegram-bot-api@0.30.0 /opt/iobroker/node_modules/node-telegram-bot-api
        npm ERR! extraneous: opencollective-postinstall@2.0.2 /opt/iobroker/node_modules/opencollective-postinstall
        npm ERR! extraneous: path@0.12.7 /opt/iobroker/node_modules/path
        npm ERR! extraneous: picocolors@1.0.0 /opt/iobroker/node_modules/picocolors
        npm ERR! extraneous: setimmediate@1.0.5 /opt/iobroker/node_modules/setimmediate
        npm ERR! extraneous: soef@0.4.15 /opt/iobroker/node_modules/soef
        npm ERR! extraneous: suncalc@1.8.0 /opt/iobroker/node_modules/suncalc
        npm ERR! extraneous: systeminformation@4.1.4 /opt/iobroker/node_modules/systeminformation
        npm ERR! extraneous: typescript@3.5.1 /opt/iobroker/node_modules/typescript
        npm ERR! extraneous: virtual-tsc@0.4.6 /opt/iobroker/node_modules/virtual-tsc
        npm ERR! extraneous: vm2@3.8.1 /opt/iobroker/node_modules/vm2
        npm ERR! peer dep missing: buffer@>=6.0.3, required by crc@4.1.0
        npm ERR! peer dep missing: buffer@>=6.0.3, required by crc@4.1.1
        steffen@Smarthome:/opt/iobroker$
        

        Das ich die Fehlermeldungen mit extraneous "übergehen" soll ist mir klar. Sieht das soweit gut aus? Was ist mit dem Error in Zeile 6 (no such file or directory)? Bei den beiden peer dep missing (Zeile 24 und 25) bin ich mir auch unsicher.

        Gruß Steffen

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

          @steff

          fsevents:

          echad@chet:/opt/iobroker $ ls -la /opt/iobroker/node_modules/fs
          fs-constants/           fs-extra/               fs-minipass/            fs.realpath/            fs-write-stream-atomic/
          

          Hab ich nicht im System. Ich vermute das kann weg. Lösche die
          /opt/iobroker/node_modules/fsevents/package.json

          buffer:

          echad@chet:/opt/iobroker $ npm ls buffer
          iobroker.inst@3.0.0 /opt/iobroker
          └─┬ iobroker.backitup@2.4.10
            └─┬ tar-fs@2.1.1
              └─┬ tar-stream@2.2.0
                └─┬ bl@4.1.0
                  └── buffer@5.7.1
          

          Keine Ahnung wo es da bei dir klemmt. 'peer deps' sind aber soweit ich weiß für die Adapterentwicklung wichtig, nicht für produktiv Systeme.

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

            @thomas-braun,

            hmm, im Verzeichnis

            /opt/iobroker/node_modules/fsevents/
            

            gibt es keine package.json Datei, da ist nur ein leeres node_modules Verzeichnis drin.

            Gruß Steffen

            1 Reply Last reply Reply Quote 0
            • Bostil
              Bostil last edited by Bostil

              Hallo zusammen,

              vielleicht habt ihr oder @thomas-braun eine Idee zur Problemlösung.

              Bei vielen Adapterupdates im "Beta"-Respository (z. B. Scriptengine, RSS-Feed und andere) erhalte ich diese oder ähnliche Fehlercodes. Das kam als ich meinen Raspberry/iobroker vor einiger Zeit auf einen anderen USB umziehen musste.

              $ ./iobroker upgrade javascript
              Update javascript from @5.8.5 to @6.0.0
              NPM version: 8.15.0
              Installing iobroker.javascript@6.0.0... (System call)
              ERROR: host.raspberrypi Cannot install iobroker.javascript@6.0.0: 217
              ERROR: process exited with code 25

              Habe auch nach Anweisung mal die Installation des Node geprüft und der Log sieht nicht ganz vollständig aus:

              bostil@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node                                                                                                              -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update                                                                                                              && apt policy nodejs
              armv7l
              /usr/bin/nodejs
              /usr/bin/node
              /usr/bin/npm
              v16.16.0
              v16.16.0
              8.15.0
              bostil
              /home/bostil
              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_16.x buster InRelease
              Paketlisten werden gelesen... Fertig
              Abhängigkeitsbaum wird aufgebaut.
              Statusinformationen werden eingelesen.... Fertig
              Alle Pakete sind aktuell.
              nodejs:
                Installiert:           16.16.0-deb-1nodesource1
                Installationskandidat: 16.16.0-deb-1nodesource1
                Versionstabelle:
               *** 16.16.0-deb-1nodesource1 500
                      500 https://deb.nodesource.com/node_16.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
              
              

              Hat jemand einen Tipp? DANKE euch! 🙂

              Thomas Braun Glasfaser 3 Replies Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @Bostil last edited by Thomas Braun

                @bostil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                Hat jemand einen Tipp?

                Den Tipp...

                iobroker upgrade javascript --debug
                

                Die höchstwahrscheinlich dann gemeldeten Verzeichnisse mit den kryptischen Endungen löschen. Können ggf. viele sein.

                sudo apt update
                

                sagt?

                Bostil 1 Reply Last reply Reply Quote 1
                • Glasfaser
                  Glasfaser @Bostil last edited by

                  @bostil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                  8.15.0

                  NPM passt nicht !

                  1 Reply Last reply Reply Quote 1
                  • Bostil
                    Bostil @Thomas Braun last edited by

                    @thomas-braun sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                    @bostil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                    Hat jemand einen Tipp?

                    Den Tipp...

                    iobroker upgrade javascript --debug
                    

                    Die höchstwahrscheinlich dann gemeldeten Verzeichnisse mit den kryptischen Endungen löschen. Können ggf. viele sein.

                    sudo apt update
                    

                    sagt?

                    Danke für deine / eure Hilfe erstmal!! Leider kommt da nicht sehr viel:

                    bostil@raspberrypi:~ $ iobroker upgrade javascript --debug
                    Adapter "javascript"     is up to date.
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Bostil last edited by

                      @bostil

                      Erstmal nodejs wieder ordentlich installieren. npm ist nicht die richtige Version.

                      1 Reply Last reply Reply Quote 1
                      • Glasfaser
                        Glasfaser @Bostil last edited by

                        @bostil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                        8.15.0

                        Wie kommst du an diese Version , denn

                        v16.16.0
                        v16.16.0
                        8.11.0
                        
                        1 Reply Last reply Reply Quote 1
                        • Bostil
                          Bostil last edited by Bostil

                          Gute Frage ... hatte das Problem aber auch schon vorher mit Version 8.11 😞

                          Habe nun folgendes erledigt:

                          iobroker stop
                          sudo apt-get --purge remove nodejs
                          sudo apt-get autoremove
                          sudo reboot
                          
                          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
                          iobroker fix
                          sudo reboot
                          
                          
                          

                          Und erhalte dann

                          bostil@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                          armv7l
                          /usr/bin/nodejs
                          /usr/bin/node
                          /usr/bin/npm
                          v16.16.0
                          v16.16.0
                          8.11.0
                          bostil
                          /home/bostil
                          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_16.x buster InRelease
                          Paketlisten werden gelesen... Fertig
                          Abhängigkeitsbaum wird aufgebaut.
                          Statusinformationen werden eingelesen.... Fertig
                          Alle Pakete sind aktuell.
                          nodejs:
                            Installiert:           16.16.0-deb-1nodesource1
                            Installationskandidat: 16.16.0-deb-1nodesource1
                            Versionstabelle:
                           *** 16.16.0-deb-1nodesource1 500
                                  500 https://deb.nodesource.com/node_16.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
                          
                          

                          Beim Updaten / installieren eines Adapters wieder Fehlermeldung ERROR: Process exited with code 25

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

                            @bostil

                            iobroker update -i
                            
                            Bostil 1 Reply Last reply Reply Quote 1
                            • Bostil
                              Bostil @Thomas Braun last edited by

                              @thomas-braun Danke dir.

                              Bin mittlerweile auch wieder zurück im Stable. Anders als im Beta-Status habe ich hier keine Updates vorliegen, versuche aber Adapter "Energiefluss" über Katze (ja .. ich weiß...) zu installieren und erhalte weiterhin den Fehler:

                              $ iobroker url https://github.com/SKB-CGN/ioBroker.energiefluss --host raspberrypi --debug
                              
                              install SKB-CGN/ioBroker.energiefluss#c84758fb62c8f27236aba7ecd79d24622de1166a
                              
                              NPM version: 8.11.0
                              
                              Installing SKB-CGN/ioBroker.energiefluss#c84758fb62c8f27236aba7ecd79d24622de1166a... (System call)
                              
                              npm ERR! code ENOTEMPTYnpm ERR! syscall renamenpm ERR! path /opt/iobroker/node_modules/iobroker.javascript
                              
                              host.raspberrypi Cannot install SKB-CGN/ioBroker.energiefluss#c84758fb62c8f27236aba7ecd79d24622de1166a: 217
                              
                              ERROR: Process exited with code 25
                              

                              iobroker update -i bringt dies:

                              bostil@raspberrypi:~ $ iobroker update -i
                              Used repository: Stable (default)
                              Adapter    "admin"        : 5.3.8    , installed 6.2.3
                              Adapter    "backitup"     : 2.4.9    , installed 2.4.10
                              Adapter    "daswetter"    : 3.1.2    , installed 3.1.3
                              Adapter    "denon"        : 1.13.4   , installed 1.13.4
                              Adapter    "device-reminder": 1.2.9  , installed 1.2.9
                              Adapter    "discovery"    : 3.0.5    , installed 3.0.5
                              Adapter    "fb-checkpresence": 1.1.19, installed 1.1.19
                              Adapter    "feiertage"    : 1.1.0    , installed 1.1.0
                              Adapter    "history"      : 2.1.7    , installed 2.1.7
                              Adapter    "homeconnect"  : 1.0.1    , installed 1.0.1
                              Adapter    "ical"         : 1.13.1   , installed 1.13.1
                              Adapter    "icons-mfd-svg": 1.1.0    , installed 1.1.0
                              Adapter    "info"         : 1.9.19   , installed 1.9.19
                              Adapter    "javascript"   : 5.7.0    , installed 5.8.5
                              Controller "js-controller": 4.0.23   , installed 4.0.23
                              Adapter    "km200"        : 2.0.3    , installed 2.0.3
                              Adapter    "openligadb"   : 1.2.4    , installed 1.2.4
                              Adapter    "pegelalarm"   : 1.2.5    , installed 1.2.8
                              Adapter    "plenticore"   : 2.2.0    , installed 2.2.2
                              Adapter    "rssfeed"      : 1.0.0    , installed 1.0.0
                              Adapter    "scenes"       : 2.3.9    , installed 2.3.9
                              Adapter    "shelly"       : 5.3.2    , installed 6.0.0
                              Adapter    "shuttercontrol": 1.4.12  , installed 1.4.14
                              Adapter    "simple-api"   : 2.7.0    , installed 2.7.0
                              Adapter    "smartcontrol" : 1.2.1    , installed 1.2.1
                              Adapter    "socketio"     : 4.2.0    , installed 6.1.8
                              Adapter    "sony-bravia"  : 1.0.3    , installed 1.0.9
                              Adapter    "trashschedule": 2.0.2    , installed 2.0.3
                              Adapter    "tvprogram"    : 1.1.2    , installed 1.1.2
                              Adapter    "vis"          : 1.4.15   , installed 1.4.15
                              Adapter    "vis-colorpicker": 1.2.0  , installed 1.2.0
                              Adapter    "vis-material-advanced": 1.7.2, installed 1.7.2
                              Adapter    "vis-plumb"    : 1.0.2    , installed 1.0.2
                              Adapter    "vis-timeandweather": 1.1.7, installed 1.2.2
                              Adapter    "weatherunderground": 3.4.2, installed 3.4.2
                              Adapter    "web"          : 4.3.0    , installed 5.2.4
                              Adapter    "windows-control": 0.1.5  , installed 0.1.5
                              Adapter    "worx"         : 1.6.6    , installed 1.6.6
                              Adapter    "ws"           : 1.3.0    , installed 2.1.3
                              
                              
                              Thomas Braun Glasfaser 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Bostil last edited by

                                @bostil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                über Katze (ja .. ich weiß...)

                                Lass die Katze in Ruhe!

                                Installier mal einen 'ordentlichen Adapter' aus dem Stable-Zweig, aber halt mit --debug Option.

                                1 Reply Last reply Reply Quote 0
                                • Bostil
                                  Bostil last edited by Bostil

                                  Ok, dann jetzt mal probehalber "CoronaVirus-Statistics" ... man, was habe ich das Thema schon vermisst 😉 Aber leider noch selbiger Fehler:

                                  $ iobroker add coronavirus-statistics auto --host raspberrypi --debug
                                  
                                  NPM version: 8.11.0
                                  
                                  Installing iobroker.coronavirus-statistics@0.8.7... (System call)
                                  
                                  npm ERR! code ENOTEMPTY
                                  
                                  host.raspberrypi Cannot install iobroker.coronavirus-statistics@0.8.7: 217
                                  
                                  ERROR: Process exited with code 25
                                  
                                  Thomas Braun Glasfaser 3 Replies Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Bostil last edited by

                                    @bostil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                    npm ERR! code ENOTEMPTY

                                    Für gewöhnlich kommt da auch ein Hinweis, welches Verzeichnis da NOTEMPTY ist.

                                    1 Reply Last reply Reply Quote 0
                                    • Glasfaser
                                      Glasfaser @Bostil last edited by

                                      @bostil sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                      npm ERR! code ENOTEMPTY

                                      Eigentlich so :

                                      npm ERR! ENOTEMPTY: directory not empty, rename
                                      

                                      sieht komisch aus !?

                                      1 Reply Last reply Reply Quote 0
                                      • Glasfaser
                                        Glasfaser @Bostil last edited by

                                        @bostil

                                        cd /opt/iobroker
                                        npm ls | grep -E 'github.com|ERR'
                                        
                                        Bostil 1 Reply Last reply Reply Quote 0
                                        • Bostil
                                          Bostil last edited by

                                          Wenn ihr Spezies schon rumrätselt ...

                                          Könnte eine Iobroker-Neuinstallation eine Lösung darstellen? Für gewöhnlich werden ja Nutzerdaten, Einstellungen beibehalten, deswegen würde ich dem entspannt gegenüber stehen.

                                          Glasfaser 1 Reply Last reply Reply Quote 0
                                          • Bostil
                                            Bostil @Glasfaser last edited by

                                            @glasfaser Viel passiert da leider nicht:

                                            bostil@raspberrypi:~ $ cd /opt/iobroker
                                            bostil@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github.com|ERR'
                                            [sudo] Passwort für bostil:
                                            bostil@raspberrypi:/opt/iobroker $
                                            
                                            Thomas Braun 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

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

                                            902
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs
                                            91
                                            844
                                            172872
                                            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