Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [How-to] Node.js ioBroker richtig updaten-2021/22 Edition

    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

    [How-to] Node.js ioBroker richtig updaten-2021/22 Edition

    This topic has been deleted. Only users with topic management privileges can see it.
    • Glasfaser
      Glasfaser @dispo112 last edited by Glasfaser

      @dispo112 sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

      NPM: v8.11.0(8.12.1)

      Finger von lassen ! ( Ist ein bekannter Anzeige Fehler , sollte so nicht sein ! )

      Edit : Beispiel

      https://forum.iobroker.net/topic/56046/übersichtsseite-neue-npm-version?_=1657189013484

      https://forum.iobroker.net/topic/55911/npm-version-alt-ein-problem/3?_=1657189013487

      1 Reply Last reply Reply Quote 0
      • J
        JoergH last edited by JoergH

        @thomas-braun @BananaJoe

        Ich habe das update auf nodejs 16.16.0 durchgeführt und zunächst lief es auch, nun erhalte ich aber ein paar Meldungen bei denen ich nicht sicher bin, ob die etwas damit zu tun haben. Einerseits bekomme ich nun

        mihome-vacuum.1
        	2022-07-19 12:33:32.603	warn	CANVAS package not installed....please install Canvas package manually or disable Map in config see also https://github.com/iobroker-community-adapters/ioBroker.mihome-vacuum/blob/master/lib/canvaserror.md
        mihome-vacuum.1
        	2022-07-19 12:33:32.476	info	State value to set for "mihome-vacuum.1.info.water_box" has to be type "string" but received type "boolean" 
        

        Allerdings ist Canvas installiert

        pi@raspberrypi:/opt/iobroker $ npm ls canvas
        iobroker.inst@3.0.0 /opt/iobroker
        └─┬ iobroker.mihome-vacuum@3.4.2
          └── canvas@2.9.3
        

        Könnt ihr mir sagen was das sein kann?

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

          @joergh

          Hmmmm. Nee, keine Ahnung wo die Meldung zu canvas herkommt. Eigentlich sollte das richtig installiert sein.

          sudo ln -s /usr/bin/node /usr/bin/nodejs
          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
          cd /opt/iobroker 
          npm ls 
          

          sagt?

          Zur anderen Meldung:

          https://github.com/iobroker-community-adapters/ioBroker.mihome-vacuum/issues/405

          nicoh88 created this issue in iobroker-community-adapters/ioBroker.mihome-vacuum

          closed roborock.vacuum.s5 - "info.water_box" has to be type "text" but received type "boolean" #405

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

            @thomas-braun

            Ist etwas länger 🙂

            NPMLS.txt

            Ja, den zweiten Fehler, der stört mich nicht...danke

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

              @joergh

              node16 wird mit npm 8 gefahren, du hast da aus irgendwelchen Gründen npm 6 drin...

              npm tree checken:

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

              npm tree aufräumen und dann:

              iobroker stop
              sudo apt update
              sudo apt install --reinstall nodejs
              iobroker start
              
              J 2 Replies Last reply Reply Quote 0
              • J
                JoergH @Thomas Braun last edited by

                @thomas-braun

                Äh...ja, das war ich. Hatte gelesen, dass npm 8 Probleme verursachen würde und man nach update von nodejs auf 6 runter gehen soll, entsprechend habe ich ein downgrade durchgeführt...war dann wohl nicht mehr aktuell...👼

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

                  @thomas-braun sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                  @joergh

                  node16 wird mit npm 8 gefahren, du hast da aus irgendwelchen Gründen npm 6 drin...

                  npm tree checken:

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

                  Da kommt weiter der CRC Error...trotzdem weiter?

                  npm ERR! peer dep missing: buffer@>=6.0.3, required by crc@4.1.1
                  
                  1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @JoergH last edited by

                    @joergh

                    Nein. Man sorgt am besten im Vorfeld für einen npm tree ohne Fehler oder Einträge mit github. Und dann ist auch die Umwandlung in das von npm8 verlangte Format kein Problem.

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

                      @thomas-braun sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                      @joergh

                      Nein. Man sorgt am besten im Vorfeld für einen npm tree ohne Fehler oder Einträge mit github. Und dann ist auch die Umwandlung in das von npm8 verlangte Format kein Problem.

                      Und wie mache ich das?

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

                        @joergh

                        Da sollte noch mehr herumkommen:

                        npm ls | grep -E 'github|ERR'
                        
                        J 2 Replies Last reply Reply Quote 0
                        • J
                          JoergH @Thomas Braun last edited by

                          @thomas-braun sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                          @joergh

                          Da sollte noch mehr herumkommen:

                          npm ls | grep -E 'github|ERR'
                          

                          Leider nicht...

                          pi@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github.com|ERR'
                          npm ERR! peer dep missing: buffer@>=6.0.3, required by crc@4.1.1
                          pi@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github.com|ERR'
                          npm ERR! peer dep missing: buffer@>=6.0.3, required by crc@4.1.1
                          pi@raspberrypi:/opt/iobroker $
                          
                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @JoergH last edited by

                            @joergh

                            Du verwendest nicht meine Vorgabe.

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

                              @thomas-braun sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                              @joergh

                              Du verwendest nicht meine Vorgabe.

                              Was meinst Du mit "Vorgabe"? Ich habe die Befehle mit Copy/Paste eingetragen...

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

                                @joergh

                                Nö.

                                npm ls | grep -E 'github|ERR'
                                

                                ist gefragt, nicht

                                npm ls | grep -E 'github.com|ERR'
                                
                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  JoergH @Thomas Braun last edited by

                                  @thomas-braun sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                  @joergh

                                  Nö.

                                  npm ls | grep -E 'github|ERR'
                                  

                                  ist gefragt, nicht

                                  npm ls | grep -E 'github.com|ERR'
                                  

                                  Achso. Sorry. Ist mir nicht aufgefallen, dass Du was geändert hattest. War noch die Copy von oben 🤦‍♂️

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

                                    @thomas-braun sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                    @joergh

                                    Da sollte noch mehr herumkommen:

                                    npm ls | grep -E 'github|ERR'
                                    
                                    pi@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github|ERR'
                                    npm ERR! peer dep missing: buffer@>=6.0.3, required by crc@4.1.1
                                    ├─┬ iobroker.renault@0.0.13 (github:TA2k/ioBroker.renault#541fed00bffa9139bbedcdc76023125a4993b65d)
                                    ├─┬ iobroker.sourceanalytix@0.4.12-2 (github:DrozmotiX/ioBroker.sourceanalytix#c9b9e18e1694e45ce88e21e868e38e565aad6910)
                                    │   ├── github-url-from-git@1.5.0
                                    │   ├─┬ new-github-release-url@1.0.0
                                    └─┬ pvforecast@0.1.4 (github:Patrick-Walther/ioBroker.pvforecast#25036cd010497ed0844c5095d58c0a53b6b74afd)
                                    pi@raspberrypi:/opt/iobroker $
                                    

                                    Das sind Adapter die ich gerade neu installiert oder reinstalliert hatte etc.

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

                                      @joergh sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                      Das sind Adapter die ich gerade neu installiert oder reinstalliert hatte etc.

                                      Und warum orgelst du die aus dem github? Sauber aus dem Repo installieren!
                                      Oder hast du von den jeweiligen Entwicklern den Auftrag da eine Alpha-Version zu testen?

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

                                        @thomas-braun sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                        @joergh sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                        Das sind Adapter die ich gerade neu installiert oder reinstalliert hatte etc.

                                        Und warum orgelst du die aus dem github? Sauber aus dem Repo installieren!
                                        Oder hast du von den jeweiligen Entwicklern den Auftrag da eine Alpha-Version zu testen?

                                        Den renault habe ich aus dem Github, weil ich gelesen hatte, das ein Problem nur in der Github Version beseitigt war...ist das jetzt kriegsentscheidend?

                                        Das hatte schon einen Grund wenn das aus Github kam...

                                        Thomas Braun 2 Replies Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @JoergH last edited by

                                          @joergh sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                          ist das jetzt kriegsentscheidend?

                                          Für den Übergang auf npm8 ja.
                                          Stell die drei auf stabile Füße, wenn npm 8 drauf ist kannste immer noch mit github rummachen.

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

                                            @joergh sagte in [How-to] Node.js ioBroker richtig updaten-2021/22 Edition:

                                            Das hatte schon einen Grund wenn das aus Github kam...

                                            Für alle drei Adapter? Bezweifle ich. Zumal der sourceanalytix auch in einer alten Version installiert ist.

                                            J 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

                                            860
                                            Online

                                            31.8k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            97
                                            812
                                            315867
                                            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