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.
    • 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
                                    • sigi234
                                      sigi234 Forum Testing Most Active @maik150 last edited by

                                      @maik150

                                      https://forum.iobroker.net/topic/20211/iobroker-installation-fixer-beta-verfügbar

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

                                        @sigi234 hab ich gelesen, was soll ich dem entnehmen?

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

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

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

                                          nein

                                          1 Reply Last reply Reply Quote 0
                                          • AlCalzone
                                            AlCalzone Developer @maik150 last edited by

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

                                            permission denied, rmdir 'build'

                                            Wenn du root bist und ioBroker gestoppt hast, dürfte das gar nicht passieren. Bist du 100% sicher, dass nicht doch noch ein ioBroker-Prozess läuft?

                                            M 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

                                            854
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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