Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. (Gelöst) Adapter Inst/De-Inst/Update hängt

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    (Gelöst) Adapter Inst/De-Inst/Update hängt

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Smokey last edited by

      @smokey

      Da hast du mal eine unpassende Version von npm drin gehabt.

      Wie schaut das da jetzt aus?

      sudo ln -s /usr/bin/node /usr/bin/nodejs
      uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      
      S 1 Reply Last reply Reply Quote 0
      • S
        Smokey @Thomas Braun last edited by Smokey

        @thomas-braun sagte in Adapter Inst/De-Inst/Update hängt:

        uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs

        so schaut das aus:

        aarch64
        /usr/bin/nodejs
        /usr/bin/node
        /usr/bin/npm
        v12.22.12
        v12.22.12
        6.14.16
        root
        /opt/iobroker
        
        Hit:1 http://security.debian.org bullseye-security InRelease
        Hit:2 http://deb.debian.org/debian bullseye InRelease                                                                                                                                
        Hit:3 http://deb.debian.org/debian bullseye-updates InRelease                                                                                                                        
        Hit:4 http://deb.debian.org/debian bullseye-backports InRelease                                                                                                                      
        Hit:6 https://packages.grafana.com/enterprise/deb stable InRelease                                                                                                                   
        Hit:7 https://packages.grafana.com/enterprise/deb beta InRelease                                                                                                                     
        Hit:8 https://repos.influxdata.com/debian bullseye InRelease                                                                                                                         
        Hit:5 https://ryanfortner.github.io/box64-debs/debian ./ InRelease                                                                                                                   
        Hit:10 https://deb.nodesource.com/node_12.x bullseye InRelease                                                                                                        
        Hit:11 https://dl.yarnpkg.com/debian stable InRelease                                                                 
        Hit:12 http://deb.volian.org/volian scar InRelease
        Hit:9 https://armbian.site-meganet.com/apt bullseye InRelease
        Reading package lists... Done                            
        Building dependency tree... Done
        Reading state information... Done
        All packages are up to date.
        nodejs:
          Installed: 12.22.12-deb-1nodesource1
          Candidate: 12.22.12-deb-1nodesource1
          Version table:
         *** 12.22.12-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_12.x bullseye/main arm64 Packages
                100 /var/lib/dpkg/status
             12.22.5~dfsg-2~11u1 500
                500 http://deb.debian.org/debian bullseye/main arm64 Packages
                500 http://security.debian.org bullseye-security/main arm64 Packages
        
        
        
        Thomas Braun S 2 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Smokey last edited by

          @smokey

          Die alter Leier: NICHT als root rumkaspern.
          Und installier SAUBER nodeJS@14.

          1 Reply Last reply Reply Quote 0
          • S
            Smokey @Smokey last edited by

            @smokey

            @thomas-braun sagte in Adapter Inst/De-Inst/Update hängt:

            @smokey

            Die alter Leier: NICHT als root rumkaspern.
            Und installier SAUBER nodeJS@14.

            erstmal Danke ich Dir für Deine Hilfe. Ich glaub nicht, dass ich "rumkaspere", aber ich hab schon verstanden dass das nicht ideal ist. Dennoch: was hast Du denn nun aus den Ausgaben gelesen? Ich würde ja gerne auch lernen an sowas. Ich habe jetzt nodeJS@14 installiert (nach der Anleitung in Deiner Signatur; also hoffentlich sauber).

            Leider hat sich dadurch am Problem bisher nichts geändert.

            Thomas Braun 3 Replies Last reply Reply Quote 0
            • haus-automatisierung
              haus-automatisierung Developer Most Active last edited by

              Auf Facebook haben auch mehrere Nutzer das Problem.

              NodeJS 14, npm 6, aktuellster js-controller und kein Update läuft durch.
              Mit den gleichen Versionen funktioniert bei mir alles.

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

                @smokey sagte in Adapter Inst/De-Inst/Update hängt:

                Leider hat sich dadurch am Problem bisher nichts geändert.

                Wie schaut das denn nun aus?

                cd /opt/iobroker
                npm ls| grep ERR
                

                Zu root sag ich nichts weiter. Aber grundsätzlich loggt man sich nie, gar nicht, unter keinen Umständen als root ein. Schon mal gerade gar nicht auf einem System mit Desktop-Umgebung.

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

                  @smokey sagte in Adapter Inst/De-Inst/Update hängt:

                  Dennoch: was hast Du denn nun aus den Ausgaben gelesen? Ich würde ja gerne auch lernen an sowas.

                  Ich lese da so einiges raus.

                  npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

                  Sagt mir z. B., dass da höchstwahrscheinlich mal ein npm>6 installiert war. Das kommt nämlich mit einem neuen Format daher.

                  Dann sehe ich da einige 'komische' Repos angelegt. Das würde ich auch verschlanken.

                  Zum root login habe ich ja schon was gesagt.

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

                    @smokey sagte in Adapter Inst/De-Inst/Update hängt:

                    Ich habe jetzt nodeJS@14 installiert (nach der Anleitung in Deiner Signatur; also hoffentlich sauber).
                    Leider hat sich dadurch am Problem bisher nichts geändert.

                    Dann spring noch eins höher auf nodeJS@16.
                    Das bringt dann ein npm@8 mit, das kann dann mit dem geänderten Format des lockfiles wieder was anfangen. Vielleicht zieht sich das dann gerade.

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

                      @thomas-braun sagte in Adapter Inst/De-Inst/Update hängt:

                      Dann spring noch eins höher auf nodeJS@16.
                      Das bringt dann ein npm@8 mit, das kann dann mit dem geänderten Format des lockfiles wieder was anfangen. Vielleicht zieht sich das dann gerade.

                      Danke Dir. Hab ich gemacht nach Deiner Anleitung. Und es sieht so aus, dass alles funktioniert.

                      npm ls| grep ERR
                      

                      meldet jetzt auch nichts mehr zurück.

                      Beim Durchlaufen Deiner Anleitung ist mir allerdings aufgefallen, dass:

                      sudo ln -s /usr/bin/node /usr/bin/nodejs
                      

                      bei mir folgende Meldung bringt:

                      ln: failed to create symbolic link '/usr/bin/nodejs': File exists
                      

                      Ich kann jetzt zwar keinen direkten negativen Impact sehen, aber vielleicht hast Du auch dafür eine Idee.

                      Jedenfalls vielen Dank. Ob ich vorher jemals eine npm >6 hatte kann ich nicht sagen. Wüsste eigentlich auch nicht woher die kommen sollte. Habe das System vor 2 Wochen mit der nodejs14 aufgesetzt und die bringt ja eigentlich die npm6 mit dachte ich.

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

                        @smokey sagte in Adapter Inst/De-Inst/Update hängt:

                        Ich kann jetzt zwar keinen direkten negativen Impact sehen, aber vielleicht hast Du auch dafür eine Idee.

                        Dann ist das schon mal verlinkt worden. Nicht weiter wild. Steht auch nur deswegen drin, damit der Link auf jedenfall vorhanden ist und die lange Befehlskette dann auch durchläuft.

                        1 Reply Last reply Reply Quote 0
                        • crunchip
                          crunchip Forum Testing Most Active @Smokey last edited by

                          @smokey sagte in Adapter Inst/De-Inst/Update hängt:

                          Habe das System vor 2 Wochen mit der nodejs14

                          Passt aber nicht zu
                          https://forum.iobroker.net/post/808085

                          S 1 Reply Last reply Reply Quote 1
                          • Thomas Braun
                            Thomas Braun Most Active @Smokey last edited by

                            @smokey

                            uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                            

                            schaut nun wie aus?

                            1 Reply Last reply Reply Quote 0
                            • S
                              Smokey last edited by

                              @thomas-braun sagte in Adapter Inst/De-Inst/Update hängt:

                              @smokey

                              uname -m && which nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                              

                              schaut nun wie aus?

                              schaut so aus:

                              aarch64
                              /usr/bin/nodejs
                              /usr/bin/node
                              /usr/bin/npm
                              v16.15.0
                              v16.15.0
                              8.5.5
                              iobroker
                              /
                              Hit:1 http://deb.debian.org/debian bullseye InRelease
                              Hit:2 http://deb.debian.org/debian bullseye-updates InRelease                                                                                                                        
                              Hit:3 http://deb.debian.org/debian bullseye-backports InRelease                                                                                                                      
                              Hit:4 http://security.debian.org bullseye-security InRelease                                                                                                                         
                              Hit:6 https://packages.grafana.com/enterprise/deb stable InRelease                                                                                                                   
                              Hit:7 https://packages.grafana.com/enterprise/deb beta InRelease                                                                                                                     
                              Hit:8 https://repos.influxdata.com/debian bullseye InRelease                                                                                                                         
                              Hit:9 https://deb.nodesource.com/node_14.x bullseye InRelease                                                                                                                        
                              Hit:5 https://ryanfortner.github.io/box64-debs/debian ./ InRelease                                                                                                                   
                              Hit:10 https://dl.yarnpkg.com/debian stable InRelease                                                                                                                         
                              Hit:12 https://deb.nodesource.com/node_16.x bullseye InRelease                                                      
                              Hit:13 http://deb.volian.org/volian scar InRelease                      
                              Hit:11 http://mirrors.xtom.de/armbian bullseye InRelease
                              Reading package lists... Done
                              Building dependency tree... Done
                              Reading state information... Done
                              All packages are up to date.
                              nodejs:
                                Installed: 16.15.0-deb-1nodesource1
                                Candidate: 16.15.0-deb-1nodesource1
                                Version table:
                               *** 16.15.0-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_16.x bullseye/main arm64 Packages
                                      100 /var/lib/dpkg/status
                                   14.19.3-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_14.x bullseye/main arm64 Packages
                                   12.22.5~dfsg-2~11u1 500
                                      500 http://deb.debian.org/debian bullseye/main arm64 Packages
                                      500 http://security.debian.org bullseye-security/main arm64 Packages
                              iobroker@orangepiplus:/$ 
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • S
                                Smokey @crunchip last edited by Smokey

                                @crunchip sagte in Adapter Inst/De-Inst/Update hängt:

                                @smokey sagte in Adapter Inst/De-Inst/Update hängt:

                                Habe das System vor 2 Wochen mit der nodejs14

                                Passt aber nicht zu
                                https://forum.iobroker.net/post/808085

                                ja, korrekt. Ich bin dann irgendwann im Rahmen der Fehlersuche (irgendeinen Artikel gelesen) zurück auf die 12 gegangen. Wahrscheinlich alles noch schlimmer gemacht dadurch.

                                crunchip 1 Reply Last reply Reply Quote 0
                                • crunchip
                                  crunchip Forum Testing Most Active @Smokey last edited by

                                  @smokey wahrscheinlich
                                  Was auch noch ausffählt, bzw die Frage
                                  War grafana enterprise und nicht die oss

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    Smokey @crunchip last edited by

                                    @crunchip sagte in Adapter Inst/De-Inst/Update hängt:

                                    @smokey wahrscheinlich
                                    Was auch noch ausffählt, bzw die Frage
                                    War grafana enterprise und nicht die oss

                                    da hab ich nicht weiter drüber nachgedacht. Ist das ein Problem? Ich dachte der einzige Unterschied wäre, dass man bei Enterprise über weitere Subscribtions Funktionen dazukaufen kann - wenn man will und braucht.

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

                                    Support us

                                    ioBroker
                                    Community Adapters
                                    Donate

                                    725
                                    Online

                                    31.9k
                                    Users

                                    80.1k
                                    Topics

                                    1.3m
                                    Posts

                                    5
                                    22
                                    958
                                    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