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.
    • Thomas Braun
      Thomas Braun Most Active @Siggi0904 last edited by

      @siggi0904

      In welchem Verzeichnis welchen exakten Befehl eingegeben?
      Immer komplette Ein- und Ausgaben inkl Login prompt zeigen.

      cd /opt/iobroker
      npm ls canvas
      

      zeigen.

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

        @thomas-braun Hallo so sieht die Ausgabe aus:

        iobroker@iobroker:/opt/iobroker$ npm ls canvas
        iobroker.inst@2.0.3 /opt/iobroker
        ├─┬ iobroker.iot@1.11.4
        │ ├── canvas@2.9.1
        │ └─┬ jsdom@19.0.0
        │   └── canvas@2.9.1 deduped
        └─┬ iobroker.mihome-vacuum@3.3.3
          └── canvas@2.9.1
        
        iobroker@iobroker:/opt/iobroker$
        
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • apollon77
          apollon77 @bahnuhr last edited by

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

          Manuell nachinstalliert mit "npm i canvas"

          Hm .... naja das ist an sich der falsche weg 😞 Canvas ist bestimmt da, aber halt kompiliert gegen die alte Version. Wenn Du jetzt nochmal canvas "irgendwo" installiert hast dann haste jetzt "irgendwo" ein extra Canvas was vllt genutzt wird vom adapter ... oder auch nicht ...

          Da ist die Meldung vom Adapter seeehr irreführend 😞

          Richtiger wäre in /opt/iobroker/node_modules zu schauen wo "canvas" liegt (also ein Verzeichnis). Am Ende starten ob es in node_modules/iobroker.mihome-vacuum/node_modules/canvas ist oder in node_modules/canvas . Dann dort ein "npm install" ausführen

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

            @siggi0904
            Sollte eigentlich passen.
            Und wo hast du jetzt genau was eingegeben das zu dem obigen Output führte?

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

              @thomas-braun ich war in "/opt/iobroker$" und habe "npm i canvas eingegeben"

              @apollon77 dem kann ich nicht folgen. Was muss ich da machen?
              Danke.

              Thomas Braun 1 Reply Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active @apollon77 last edited by

                @apollon77

                Bei mir ist es wohl jetzt da drin:

                dieter@VM-iobroker:~$ npm ls canvas
                dieter@ /home/dieter
                └── canvas@2.9.1
                
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @bahnuhr last edited by

                  @bahnuhr
                  In /home/dieter ist es falsch.

                  bahnuhr 1 Reply Last reply Reply Quote 1
                  • bahnuhr
                    bahnuhr Forum Testing Most Active @Thomas Braun last edited by

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

                    @bahnuhr
                    In /home/dieter ist es falsch.

                    wenn ich wechsel nach /opt/iobroker dann kommt dies:

                    dieter@VM-iobroker:/opt/iobroker$ npm ls canvas
                    [sudo] Passwort für dieter:
                    iobroker.inst@2.0.3 /opt/iobroker
                    ├── canvas@2.9.1 extraneous
                    └─┬ iobroker.mihome-vacuum@3.3.3
                      └── canvas@2.9.1
                    
                    

                    Das sieht schon besser aus, oder ?

                    Wie bekomme ich das andere wieder weg.
                    oder einfach drin lassen ?

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

                      @siggi0904
                      Stell dich in
                      /opt/iobroker/node_modules/iobroker.mihome-vacuum/node_modules/canvas

                      und dann

                      npm install
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Siggi0904 @Thomas Braun last edited by

                        @thomas-braun hm, da gibt es kein Canvas.

                        iobroker@iobroker:/opt/iobroker/node_modules/iobroker.mihome-vacuum/node_modules$ ls -lisa
                        insgesamt 20
                         537574 4 drwxrwxr-x+ 5 iobroker iobroker 4096 17. Mai 19:28 .
                         524336 4 drwxrwxr-x+ 5 iobroker iobroker 4096 17. Mai 19:28 ..
                         524332 4 drwxrwxr-x+ 6 iobroker iobroker 4096 17. Mai 19:28 qs
                        2891192 4 drwxrwxr-x+ 3 iobroker iobroker 4096  6. Nov 2021  request
                        2891190 4 drwxrwxr-x+ 3 iobroker iobroker 4096  6. Nov 2021  tough-cookie
                        iobroker@iobroker:/opt/iobroker/node_modules/iobroker.mihome-vacuum/node_modules$
                        
                        
                        apollon77 1 Reply Last reply Reply Quote 0
                        • apollon77
                          apollon77 @Siggi0904 last edited by apollon77

                          @siggi0904 Dann nimm /opt/iobroker/node_modules/canvas

                          und genau das sagte mein Satz oben. Schau wo es ist und da wo es ist mach den Befehl

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

                            @apollon77
                            Das lief soweit durch. Folgende Meldung kam:

                            iobroker@iobroker:/opt/iobroker/node_modules/iobroker.mihome-vacuum/node_modules$ ls -lisa
                            insgesamt 20
                             537574 4 drwxrwxr-x+ 5 iobroker iobroker 4096 17. Mai 19:28 .
                             524336 4 drwxrwxr-x+ 5 iobroker iobroker 4096 17. Mai 19:28 ..
                             524332 4 drwxrwxr-x+ 6 iobroker iobroker 4096 17. Mai 19:28 qs
                            2891192 4 drwxrwxr-x+ 3 iobroker iobroker 4096  6. Nov 2021  request
                            2891190 4 drwxrwxr-x+ 3 iobroker iobroker 4096  6. Nov 2021  tough-cookie
                            iobroker@iobroker:/opt/iobroker/node_modules/iobroker.mihome-vacuum/node_modules$ cd ..
                            iobroker@iobroker:/opt/iobroker/node_modules/iobroker.mihome-vacuum$ cd ..
                            iobroker@iobroker:/opt/iobroker/node_modules$ cd canvas/
                            iobroker@iobroker:/opt/iobroker/node_modules/canvas$ npm install
                            npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                            npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
                            npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                            npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                            npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
                            
                            > canvas@2.9.1 install
                            > node-pre-gyp install --fallback-to-build
                            
                            node-pre-gyp info it worked if it ends with ok
                            node-pre-gyp info using node-pre-gyp@1.0.9
                            node-pre-gyp info using node@16.15.1 | linux | x64
                            [canvas] Success: "/opt/iobroker/node_modules/canvas/build/Release/canvas.node" already installed
                            Pass --update-binary to reinstall or --build-from-source to recompile
                            node-pre-gyp info ok
                            
                            added 448 packages, and audited 466 packages in 58s
                            
                            51 packages are looking for funding
                              run `npm fund` for details
                            
                            3 vulnerabilities (2 moderate, 1 critical)
                            
                            To address all issues (including breaking changes), run:
                              npm audit fix --force
                            
                            Run `npm audit` for details.
                            iobroker@iobroker:/opt/iobroker/node_modules/canvas$
                            
                            
                            mikeal created this issue in request/request

                            open Request’s Past, Present and Future #3142

                            1 Reply Last reply Reply Quote 0
                            • bahnuhr
                              bahnuhr Forum Testing Most Active last edited by

                              hab das jetzt auch mal gemacht:

                              Es kommt:

                              dieter@VM-iobroker:/opt/iobroker/node_modules$ cd canvas
                              dieter@VM-iobroker:/opt/iobroker/node_modules/canvas$ npm install
                              [sudo] Passwort für dieter:
                              npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                              npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
                              npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                              npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                              npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
                              
                              > canvas@2.9.1 install
                              > node-pre-gyp install --fallback-to-build
                              
                              node-pre-gyp info it worked if it ends with ok
                              node-pre-gyp info using node-pre-gyp@1.0.9
                              node-pre-gyp info using node@16.15.1 | linux | x64
                              [canvas] Success: "/opt/iobroker/node_modules/canvas/build/Release/canvas.node" already installed
                              Pass --update-binary to reinstall or --build-from-source to recompile
                              node-pre-gyp info ok
                              
                              added 449 packages, and audited 469 packages in 45s
                              
                              51 packages are looking for funding
                                run `npm fund` for details
                              
                              3 vulnerabilities (2 moderate, 1 critical)
                              
                              To address all issues (including breaking changes), run:
                                npm audit fix --force
                              
                              Run `npm audit` for details.
                              dieter@VM-iobroker:/opt/iobroker/node_modules/canvas$
                              
                              

                              Sind diese Meldungen richtig ?

                              und bei ls canvas kommt wieder:

                              dieter@VM-iobroker:/opt/iobroker$ npm ls canvas
                              iobroker.inst@2.0.3 /opt/iobroker
                              ├── canvas@2.9.1 extraneous
                              └─┬ iobroker.mihome-vacuum@3.3.3
                                └── canvas@2.9.1
                              
                              dieter@VM-iobroker:/opt/iobroker$
                              
                              
                              mikeal created this issue in request/request

                              open Request’s Past, Present and Future #3142

                              apollon77 1 Reply Last reply Reply Quote 0
                              • apollon77
                                apollon77 @bahnuhr last edited by

                                @bahnuhr Sieht spontan gut aus ... tut es denn? und ja du hast jetzt ein "extranous "canvas .... tja ... is so 🙂

                                bahnuhr S 2 Replies Last reply Reply Quote 0
                                • bahnuhr
                                  bahnuhr Forum Testing Most Active @apollon77 last edited by

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

                                  @bahnuhr Sieht spontan gut aus ... tut es denn? und ja du hast jetzt ein "extranous "canvas .... tja ... is so 🙂

                                  ja, funktioniert. Karte wird angezeigt.

                                  soll ich denn canvas bei /home/dieter irgendwie löschen?
                                  Oder lass ich es jetzt so?

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

                                    @apollon77 bei mir bleibt die Meldung gleich nach dem Start vom Adapter.

                                    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
                                    
                                    apollon77 1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @bahnuhr last edited by

                                      @bahnuhr Ja das kannste löschen. Das ist dem iobroker egal

                                      bahnuhr 1 Reply Last reply Reply Quote 0
                                      • bahnuhr
                                        bahnuhr Forum Testing Most Active @apollon77 last edited by

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

                                        Ja das kannste löschen.

                                        und wie ?

                                        apollon77 1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @bahnuhr last edited by

                                          @bahnuhr Lösch das ganze /home/dieter/node_modules?? Wenn da nix anderes war. Sonst "npm uninstall canvas" in /home/dieter

                                          bahnuhr 1 Reply Last reply Reply Quote 0
                                          • apollon77
                                            apollon77 @Siggi0904 last edited by

                                            @siggi0904 Hmmm ... Nicht hilfreich wenn der Adapter die echte Fehlermeldung versteckt ... Keine Ahnung ... versuch instanz zu löschen und adapter uninstall und neu installieren

                                            bahnuhr S 3 Replies 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

                                            656
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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