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 @JuStForFun last edited by

      @justforfun

      Schaut sauber aus. Wäre noch besser lesbar wenn es in CodeTags eingebettet wäre.

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

        @thomas-braun

        puh, dann bin ich beruhigt. Vielen Dank!

        Hast du eine Ahnung wie ich den Xiaomi Adapter richtig konfiguriere?
        Ich habe die App heruntergeladen aber ich weiter geht es nicht weil mir beim Punkt "About" in den Einstellungen mehrmals anklicken das "About" fehlt.

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

          @justforfun

          Das ist ein anderes Thema.

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

            @thomas-braun Soll ich dann einen neuen post aufmachen am besten?

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

              @Thomas-Braun
              Dein iob_diag sagte meine nodejs 16 und npm 8 sind nicht OK.
              Hab dann ein node upgrade deinem [how-to] folgend gemacht bekomme aber immer noch npm 8.19.2. Komplettes apt remove nodejs und neu installieren hat auch nichts geändert.
              iob_diag

              Check                               Value   Recommendation/Notes
              npm ping                            ok
              npm -v                              not ok  Use npm v9.1.1
              node -v                             ok      current: v18.12.1, recommended: v18.12.1
              npm config get registry             ok      using default registry (https://registry.npmjs.org/)
              which git                           ok      /usr/bin/git
              Perms check on cached files         ok
              Perms check on local node_modules   ok
              Perms check on global node_modules  ok
              Perms check on local bin folder     ok
              Perms check on global bin folder    ok
              Verify cache contents               ok      verified 6 tarballs
              npm ERR! Some problems found. See above for recommendations.
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/iobroker/.npm/_logs/2022-11-16T11_59_07_124Z-debug-0.log
              
              The recommended versions for ioBroker are nodeJS v16 / npm v8!
              Don't trust the doctor if he recommends different versions!
              

              Oder ist das ein Thema für den iob_diag thread?

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

                @ostfrieseunterwegs

                Das steht aber auch:

                The recommended versions for ioBroker are nodeJS v16 / npm v8!
                Don't trust the doctor if he recommends different versions!
                

                Ich glaube ich nehme den Check wieder raus, der verwirrt mehr als das er was nutzt.
                Wäre auch eher was für den iob_diag-Thread.

                Was sagt denn der Part etwas davor zu nodejs/npm?

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

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

                  Was sagt denn der Part etwas davor zu nodejs/npm?

                  *** NodeJS-Installation ***
                  
                  /usr/bin/nodejs         v18.12.1
                  /usr/bin/node           v18.12.1
                  /usr/bin/npm            8.19.2
                  
                  nodejs:
                    Installed: 18.12.1-deb-1nodesource1
                    Candidate: 18.12.1-deb-1nodesource1
                    Version table:
                   *** 18.12.1-deb-1nodesource1 500
                          500 https://deb.nodesource.com/node_18.x jammy/main amd64 Packages
                          100 /var/lib/dpkg/status
                       12.22.9~dfsg-1ubuntu3 500
                          500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                  
                  

                  Mach dir keine weiteren Gedanken. Das war eine Testinstallation unter wsl und ubuntu. Ich war nur über die npm 9 gestolpert.

                  OT:
                  ioBroker läuft unter wsl dem Anschein nach übrigens - also admin und core. Ich habe aber keine weiteren Adapter getestet. Insgesamt ist das aber eine Umgebung mit der ich mich nicht anfreunden kann. Die Einbindung ins Netzwerk ist totaler Krampf.

                  Xsev 1 Reply Last reply Reply Quote 0
                  • Xsev
                    Xsev @OstfrieseUnterwegs last edited by Xsev

                    Ich bekomme den Zigbee Adapter leider nicht mehr grün nach dem nodes Update (V16). Wenn ich den npm install --production ausführe bekomme ich folgende Fehlermeldung. Der Adapter läuft auf einem Slave Raspi.

                    pi@Slaveserver1:/opt/iobroker/node_modules/serialport/node_modules/@serialport/bindings $ npm install --production               npm WARN config production Use `--omit=dev` instead.
                    
                    > @serialport/bindings@9.2.8 install
                    > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
                    
                    prebuild-install warn install No prebuilt binaries found (target=16.18.1 runtime=node arch=arm libc= platform=linux)
                    gyp info it worked if it ends with ok
                    gyp info using node-gyp@9.1.0
                    gyp info using node@16.18.1 | linux | arm
                    gyp ERR! find Python
                    gyp ERR! find Python Python is not set from command line or npm configuration
                    gyp ERR! find Python Python is not set from environment variable PYTHON
                    gyp ERR! find Python checking if "python3" can be used
                    gyp ERR! find Python - executable path is "/usr/bin/python3"
                    gyp ERR! find Python - version is "3.5.3"
                    gyp ERR! find Python - version is 3.5.3 - should be >=3.6.0
                    gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
                    gyp ERR! find Python checking if "python" can be used
                    gyp ERR! find Python - executable path is "/usr/bin/python"
                    gyp ERR! find Python - version is "2.7.13"
                    gyp ERR! find Python - version is 2.7.13 - should be >=3.6.0
                    gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
                    gyp ERR! find Python
                    gyp ERR! find Python **********************************************************
                    gyp ERR! find Python You need to install the latest version of Python.
                    gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
                    gyp ERR! find Python you can try one of the following options:
                    gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
                    gyp ERR! find Python   (accepted by both node-gyp and npm)
                    gyp ERR! find Python - Set the environment variable PYTHON
                    gyp ERR! find Python - Set the npm configuration variable python:
                    gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
                    gyp ERR! find Python For more information consult the documentation at:
                    gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
                    gyp ERR! find Python **********************************************************
                    gyp ERR! find Python
                    gyp ERR! configure error
                    gyp ERR! stack Error: Could not find any Python installation to use
                    gyp ERR! stack     at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
                    gyp ERR! stack     at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
                    gyp ERR! stack     at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:266:16)
                    gyp ERR! stack     at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:297:7)
                    gyp ERR! stack     at ChildProcess.exithandler (node:child_process:394:7)
                    gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
                    gyp ERR! stack     at maybeClose (node:internal/child_process:1100:16)
                    gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
                    gyp ERR! System Linux 4.19.66-v7+
                    gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                    gyp ERR! cwd /opt/iobroker/node_modules/serialport/node_modules/@serialport/bindings
                    gyp ERR! node -v v16.18.1
                    gyp ERR! node-gyp -v v9.1.0
                    gyp ERR! not ok
                    npm ERR! code 1
                    npm ERR! path /opt/iobroker/node_modules/serialport/node_modules/@serialport/bindings
                    npm ERR! command failed
                    npm ERR! command sh -c -- prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
                    
                    npm ERR! A complete log of this run can be found in:
                    npm ERR!     /home/iobroker/.npm/_logs/2022-11-23T10_08_21_335Z-debug-0.log
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Xsev last edited by Thomas Braun

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

                      gyp ERR! find Python - version is 3.5.3 - should be >=3.6.0

                      Python zu alt.
                      System upgraden, das ist vermutlich noch ein Buster oder älteres.

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

                        @thomas-braun Super danke!

                        Pedder007 1 Reply Last reply Reply Quote 0
                        • Pedder007
                          Pedder007 @Xsev last edited by

                          @Thomas-Braun hallöle, ich hätte da nochmal eine generelle Frage bzgl. Node update:
                          Spricht eigentlich etwas dagegen, das node update im Rahmen eines normalen PI updates/upgrades mit zu aktualisieren, wenn man den iobroker vorher stoppt und hinterher den Fixer drüber laufen lässt?

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

                            @pedder007

                            Nö.
                            Das läuft eh über 'das normale' full-upgrade des Betriebssystems mit.
                            Ist ja gerade der Witz an der Sache das ganze über ein Repo reinzuziehen.
                            Da man das ja regelmäßig macht rutscht auch regelmäßig nodeJS nach.
                            Deswegen verstehe ich auch nie warum hier so viele mit alten Versionen rumeiern.

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

                              @thomas-braun ok danke. Hab ich's mir immer zu umständlich gemacht 😉
                              Drauf gekommen bin ich gerade aber auch erst dadurch, dass ich ein update/upgrade gemacht hatte und aus Versehen den ioBroker vorher nicht gestoppt hatte. Das hat ziemliches Chaos produziert, aber wofür hat man ja BackUps 😉
                              Schönes WE 👍

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

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

                                Das hat ziemliches Chaos produziert, aber wofür hat man ja BackUps

                                iobroker restart
                                

                                hätte vermutlich ausgereicht.

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

                                  @thomas-braun, nee leider nicht. Hatte sogar den ganzen PI rebootet. Irgendwas ist da ordentlich aus dem Tritt geraten. Allerdings auch bei deConz. hatte sogar ein paar remote Butttons verloren, die sich auch nicht wieder anlernen ließen.
                                  Habe mir dann eine meiner Clone-Karten genommen, aktuelles Backup drüber gespielt und dann das update nochmals von vorne durchgeführt. Beim 2.ten Mal gab's die Probleme dann nicht mehr.
                                  Aber man muss IT ja auch nicht immer verstehen 😉

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

                                    @pedder007

                                    Das kann aber eigentlich nicht mit einem ordentlich ausgeführten Upgrade in Zusammenhang stehen.

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

                                      @thomas-braun Mir kommts auch komisch vor. Ich habe vorsichtshalber auch die betreffende SD Karte nun mal aussortiert. Ich meine die lief jetzt auch schon wieder ein gutes Jahr.
                                      Ich hatte ganz am Anfang meiner ioBroker Zeit mal Probleme mit ein paar billig-SDs, das hatte sich damals ähnlich eigenartig 'angefühlt'.

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        Calherian @aleks-83 last edited by

                                        @aleks-83 habe heute zum ersten Mal Iobroker installiert. Dein Hinweis mit dem kopieren klappt bei mir nur mit der Node 18 aber nicht mit der 16. gibts da einen anderen Trick?

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

                                          @calherian

                                          16 richtig installiert?

                                          Und auf welchen der siebenhundert irgendwas Einträge beziehst du dich?

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

                                            @thomas-braun
                                            Hab einen unsauberen 'npm tree'. Das sieht bei mir so aus:

                                            pi@raspberrypi:/opt/iobroker $ npm ls | grep -E 'github|ERR'
                                            │ │ │ │   ├── github-from-package@0.0.0 deduped
                                            │   │   ├── github-from-package@0.0.0
                                            

                                            Wie bring ich das hin? Kann ich einfach auf 16 updaten?

                                            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

                                            612
                                            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