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 für ioBroker richtig updaten

    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 für ioBroker richtig updaten

    This topic has been deleted. Only users with topic management privileges can see it.
    • arteck
      arteck Developer Most Active @sveni_lee last edited by arteck

      @sveni_lee man kriegt es noch hin.. wenn du heute zeit hast im TS bin ab 19 uhr da

      du müsstest die Datei anpassen wo die Adapter aufgelistet sind
      und die Einträge bis zu den icons-open-icon-library-png incl löschen
      und dann weiter laufen lassen. oder alle iobroker.xxxxx löschen ausser den admin und js-controller und dann nochmal starten dann wird auch alles gezogen... ist aber tricky..

      1 Reply Last reply Reply Quote 0
      • Stabilostick
        Stabilostick @sveni_lee last edited by Stabilostick

        @sveni_lee sagte in [How-to] Node.js für ioBroker richtig updaten:

        nun lässt sich iobroker nicht mehr starten

        Installiere den js-controller neu:

        cd /opt/iobroker
        npm i iobroker.js-controller --production --force
        

        Dann noch den Installation Fixer darüber laufen lassen:

        curl -sL https://iobroker.net/fix.sh | bash -
        

        iobroker starten. Klappt es jetzt?

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

          @Stabilostick sagte in [How-to] Node.js für ioBroker richtig updaten:

          npm i ioBroker.js-controller --production --force

          nope... das klappt auch nicht

          svenilee@Gotham-City:/opt/iobroker$ npm i ioBroker.js-controller --production --force
          npm WARN using --force I sure hope you know what you are doing.
          npm ERR! code E404
          npm ERR! 404 Not Found - GET https://registry.npmjs.org/ioBroker.js-controller - Not found
          npm ERR! 404
          npm ERR! 404  'ioBroker.js-controller@latest' is not in the npm registry.
          npm ERR! 404 Your package name is not valid, because
          npm ERR! 404  1. name can no longer contain capital letters
          npm ERR! 404
          npm ERR! 404 Note that you can also install from a
          npm ERR! 404 tarball, folder, http url, or git url.
          
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /home/svenilee/.npm/_logs/2019-11-18T13_51_11_353Z-debug.log
          svenilee@Gotham-City:/opt/iobroker$
          
          
          apollon77 1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 @sveni_lee last edited by

            @sveni_lee Schreib mal alle buchstaben klein 🙂

            iobroker.js-controller

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

              @apollon77

              jetzt ging es schon mal weiter.

              svenilee@Gotham-City:/opt/iobroker$ npm i iobroker.js-controller --production --force
              npm WARN using --force I sure hope you know what you are doing.
              npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
              
              > iobroker.js-controller@1.5.14 preinstall /opt/iobroker/node_modules/iobroker.js-controller
              > node lib/preinstallCheck.js
              
              NPM version: 6.11.3
              npm version >= 5: disabling package-lock
              
              > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional
              > node rebuild.js
              
              
              > diskusage@1.1.3 install /opt/iobroker/node_modules/diskusage
              > node-gyp rebuild
              
              make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
                CXX(target) Release/obj.target/diskusage/src/main.o
                CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o
                SOLINK_MODULE(target) Release/obj.target/diskusage.node
                COPY Release/diskusage.node
              make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird verlassen
              
              > iobroker.js-controller@1.5.14 install /opt/iobroker/node_modules/iobroker.js-controller
              > node iobroker.js setup first
              
              
              > acme-v2@1.8.6 postinstall /opt/iobroker/node_modules/acme-v2
              > node scripts/postinstall
              
              
              Greenlock and ACME.js v3 are on the way!
              Watch for updates at https://indiegogo.com/at/greenlock
              
              + iobroker.js-controller@1.5.14
              added 335 packages from 279 contributors and audited 841 packages in 26.74s
              found 27 vulnerabilities (19 low, 8 high)
                run `npm audit fix` to fix them, or `npm audit` for details
              svenilee@Gotham-City:/opt/iobroker$
              
              

              soll ich run npm audit fix to fix them, or npm audit for details ausführen?

              AlCalzone apollon77 2 Replies Last reply Reply Quote 0
              • AlCalzone
                AlCalzone Developer @sveni_lee last edited by

                @sveni_lee sagte in [How-to] Node.js für ioBroker richtig updaten:

                soll ich run npm audit fix to fix them, or npm audit for details ausführen?

                NEIN!

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

                  @sveni_lee Alles gut, so geht es. Wie @AlCalzone geschrieben hat: nix weiter ausführen

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

                    @apollon77

                    etwas spät aber immerhin... es läuft ja wieder.
                    aber irgendwas stimt bei meiner installation nicht.
                    Jetzt habe ich Probleme mit JS-scripten
                    "cannot find modul 'request'" steht da zum Beispiel. Das habe ich bei
                    request, fs und dateformat.

                    1 Reply Last reply Reply Quote 0
                    • K
                      klausiob last edited by

                      @apollon77 Danke für die Anleitung. Wollte mein Node.js von 8.14.0 auf 18.16.2 updaten (raspi3+). Bin am Punkt iobroker stop gescheitert.

                      iobroker controller daemon is not running
                      

                      Es läuft aber noch alles in VIS und Admin. Dann versuchte ich mit sudo kill -9 <ProzessID> einzeln zu löschen. Funktioniert einzeln auch, mußte dann aber feststellen, dass nach und nach wieder alle Prozesse mit neuer PID da waren????
                      Was mache ich falsch?

                      BBTown apollon77 2 Replies Last reply Reply Quote 0
                      • BBTown
                        BBTown @klausiob last edited by

                        @klausiob
                        Node.js von 8.14.0 auf 18.16.2 updaten

                        ich bin ziemlich sicher, dass Du dann weltweit der Erste auf einer v18.x.x sein wirst ... 😎

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

                          @klausiob wenn du manuell killst dann den js-Controller Prozess zuerst. Der startet sonst alles wieder. Wenn iobroker stop nicht tut Versuch „systemctl stop iobroker“ und am besten den fixer laufen lassen.

                          1 Reply Last reply Reply Quote 0
                          • K
                            klausiob last edited by

                            @apollon77 Danke hat funktioniert. Hier nochmal die Zusammenfassung:
                            Für das Kommando werden root-Rechte gebraucht

                            sudo -s
                            systemctl stop iobroker
                            ps -ef|grep io
                            curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash
                            node -v
                            nodejs -v
                            

                            Wollte erst ... setup_8.16.2 eingeben. Findet er aber nicht, nimmt mit "x" aber die gewünschte aktuellste Version.

                            1 Reply Last reply Reply Quote 0
                            • M
                              maik150 last edited by

                              ich wollte nun auch node.js aktualisieren, was soweit auch klappte. als ich dann aber "npm rebuild" in cd /opt/iobroker ausgeführt habe, kam dies zum schluss. bin bis hier nach der anleitung hier aus dem forum vorgegangen.

                              gyp ERR! clean error
                              gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'
                              gyp ERR! System Linux 4.9.59-v7+
                              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild"
                              gyp ERR! cwd /opt/iobroker/node_modules/ursa
                              gyp ERR! node -v v10.17.0
                              gyp ERR! node-gyp -v v5.0.3
                              gyp ERR! not ok
                              npm ERR! code ELIFECYCLE
                              npm ERR! errno 1
                              npm ERR! ursa@0.9.4 install: `node-gyp rebuild`
                              npm ERR! Exit status 1
                              npm ERR!
                              npm ERR! Failed at the ursa@0.9.4 install script.
                              npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.
                              
                              npm ERR! A complete log of this run can be found in:
                              npm ERR!     /root/.npm/_logs/2019-11-30T17_15_22_906Z-debug.log
                              

                              kann mir da einer von euch weiterhelfen? oder kann man dies ignorieren, wahrscheinlich nicht oder?

                              apollon77 AlCalzone 2 Replies Last reply Reply Quote 0
                              • apollon77
                                apollon77 @maik150 last edited by

                                @maik150 installation fixer nutzen um alles rechte korrekt zu setzen.

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

                                  @apollon77 den installationsfixer habe ich davor ausgeführt

                                  sigi234 1 Reply Last reply Reply Quote 0
                                  • sigi234
                                    sigi234 Forum Testing Most Active @maik150 last edited by sigi234

                                    @maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:

                                    @apollon77 den installationsfixer habe ich davor ausgeführt

                                    node-gyp -v v5.0.3 ?

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      maik150 @sigi234 last edited by

                                      @sigi234 keine ahnung, was sagt dieser wert aus?

                                      sigi234 1 Reply Last reply Reply Quote 0
                                      • sigi234
                                        sigi234 Forum Testing Most Active @maik150 last edited by

                                        @maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:

                                        @sigi234 keine ahnung, was sagt dieser wert aus?

                                        Was kommt bei:

                                        cd /opt/iobroker
                                        iobroker list instances
                                        node -v
                                        nodejs -v
                                        npm -v

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          maik150 @sigi234 last edited by

                                          @sigi234

                                          root@raspberrypi2:/opt/iobroker# iobroker list instances
                                          system.adapter.admin.0                 : admin       -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                                          system.adapter.cloud.0                 : cloud       -  enabled
                                          system.adapter.discovery.0             : discovery   -  enabled
                                          system.adapter.hm-rega.0               : hm-rega     -  enabled
                                          system.adapter.hm-rpc.0                : hm-rpc      -  enabled, port: 0
                                          system.adapter.info.0                  : info        -  enabled
                                          system.adapter.samsung.0               : samsung     - disabled
                                          root@raspberrypi2:/opt/iobroker#
                                          

                                          node -v
                                          v10.17.0

                                          nodejs -v
                                          v10.17.0

                                          npm -v
                                          v6.11.3

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            maik150 last edited by

                                            ich führe alles als root user aus nicht als pi user, falls das vielleicht wichtig ist?

                                            und der installationsfixer muss der im iobroker ordner ausgeführt werden?

                                            sigi234 BBTown 2 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

                                            750
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            installation linux node node.js nodejs windows
                                            106
                                            1105
                                            680152
                                            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