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

      @cvidal Dann bin ich raus.
      Permanent als root angemeldet und dann eine noch nicht vorgesehene Version macht Hilfe schwer.

      cvidal 1 Reply Last reply Reply Quote 0
      • apollon77
        apollon77 @Sneak-L8 last edited by

        @Sneak-L8 Sehr interessant, da ist von der epoll 0.x nix zu sehen ... Dann halt der Harte weg:

        Lösche mal /opt/iobroker/node_modules/rpi-gpio/node_modules/epoll komplett. Dann gehst Du in /opt/iobroker/node_modules/rpi-gpio und sagst "npm install --production".

        Dann versuch nochmal

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

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

          authenticate_pam

          Versuch mal "apt install libpam0g-dev" und danach nochmal

          cvidal 1 Reply Last reply Reply Quote 0
          • cvidal
            cvidal Forum Testing @apollon77 last edited by cvidal

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

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

            authenticate_pam

            Versuch mal "apt install libpam0g-dev" und danach nochmal

            Sollte ich das unter cd /opt/iobroker machen?

            Edit: ich habe jetzt erstmal auf NodeJS 10.20.1 am laufen, das geht erst mal ohne Probleme. Node 12 werde ich erstmal die finger von lassen.

            1 Reply Last reply Reply Quote 0
            • cvidal
              cvidal Forum Testing @Thomas Braun last edited by

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

              @cvidal Dann bin ich raus.
              Permanent als root angemeldet und dann eine noch nicht vorgesehene Version macht Hilfe schwer.

              Ist mein Testsystem, da versuche ich irgendwie alles mal, normal bin ich nicht dauerhaft als Root angemeldet.

              1 Reply Last reply Reply Quote 0
              • S
                Sneak-L8 @apollon77 last edited by Sneak-L8

                @apollon77 Guten Morgen, hab ich gemacht. Das Löschen wir nur mit root-User möglich (also sudo rm -rf ...).
                Aber schon der

                npm install --production
                

                schlägt wieder mit demselben Befehl fehl:

                pi@ioBroker-RasPi:/opt/iobroker/node_modules/rpi-gpio $ npm install --production
                npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
                npm WARN deprecated mkdirp@0.3.5: 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.)
                npm WARN deprecated istanbul@0.2.7: This module is no longer maintained, try this instead:
                npm WARN deprecated   npm i nyc
                npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
                npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
                npm WARN deprecated mkdirp@0.3.0: 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.)
                npm WARN deprecated formatio@1.0.2: This package is unmaintained. Use @sinonjs/formatio instead
                npm WARN deprecated graceful-fs@2.0.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
                npm WARN deprecated minimatch@0.4.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
                npm WARN deprecated samsam@1.1.3: This package has been deprecated in favour of @sinonjs/samsam
                npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
                
                > epoll@0.1.22 install /opt/iobroker/node_modules/rpi-gpio/node_modules/epoll
                > node-gyp rebuild
                
                make: Verzeichnis „/opt/iobroker/node_modules/rpi-gpio/node_modules/epoll/build“ wird betreten
                  CXX(target) Release/obj.target/epoll/src/epoll.o
                In file included from ../../nan/nan.h:192:0,
                                 from ../src/epoll.cc:15:
                [...]
                /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
                   declarator __attribute__((deprecated(message)))
                   ^~~~~~~~~~
                epoll.target.mk:103: die Regel für Ziel „Release/obj.target/epoll/src/epoll.o“ scheiterte
                make: *** [Release/obj.target/epoll/src/epoll.o] Fehler 1
                make: Verzeichnis „/opt/iobroker/node_modules/rpi-gpio/node_modules/epoll/build“ wird verlassen
                gyp ERR! build error
                gyp ERR! stack Error: `make` failed with exit code: 2
                gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23)
                gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
                gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
                gyp ERR! System Linux 4.14.34-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/rpi-gpio/node_modules/epoll
                gyp ERR! node -v v10.20.1
                gyp ERR! node-gyp -v v5.1.0
                gyp ERR! not ok
                npm ERR! code ELIFECYCLE
                npm ERR! errno 1
                npm ERR! epoll@0.1.22 install: `node-gyp rebuild`
                npm ERR! Exit status 1
                npm ERR!
                npm ERR! Failed at the epoll@0.1.22 install script.
                npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                
                npm ERR! A complete log of this run can be found in:
                npm ERR!     /home/iobroker/.npm/_logs/2020-04-15T07_59_33_981Z-debug.log
                

                Er will erneut epoll 0.1.22 installieren...

                apollon77 1 Reply Last reply Reply Quote 0
                • apollon77
                  apollon77 @Sneak-L8 last edited by

                  @Sneak-L8 Ok, dann noch härter:

                  Lösche /opt/iobroker/node_modules/rpi-gpio

                  gehe in /opt/iobroker/node_modules/iobroker.rpi2 und mache dort

                  npm install --production

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sneak-L8 last edited by

                    Super, jetzt hat's geklappt! Vielen Dank!!

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

                      @Thomas-Braun das klappt so aber nicht
                      952512e1-17d5-4614-862d-002b93667610-image.png

                      Glasfaser 1 Reply Last reply Reply Quote 0
                      • Glasfaser
                        Glasfaser @crunchip last edited by

                        @crunchip

                        vorher eine .. machen , zur Paketenaktualisierung

                        sudo apt update
                        
                        crunchip 1 Reply Last reply Reply Quote 1
                        • crunchip
                          crunchip Forum Testing Most Active @Glasfaser last edited by

                          @Glasfaser danke, hatte ich nicht dran gedacht

                          Glasfaser 1 Reply Last reply Reply Quote 0
                          • Glasfaser
                            Glasfaser @crunchip last edited by Glasfaser

                            @crunchip

                            😉

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

                              vertan... falscher Beitrag

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

                                Jetzt wird es richtig wuschelig mit der js8 Version. Ich überlege auch upgrade auf js12 zu machen, wie sieht es damit aus? Gibt es dazu auch eine Anleitung? Gibt es für NPM auch dann eine Notwendigkeit diese upzugraden?
                                Danke für jeden Hinweis!

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

                                  @SolarGuido Hängt vom verwendeten System ab.
                                  Grundsätzlich: Siehe den ersten Beitrag in diesem Thread.

                                  S 1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @SolarGuido last edited by

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

                                    wie sieht es damit aus? Gibt es dazu auch eine Anleitung?

                                    Die Anleitung ist identisch, nur dass du die 10.x in dem Befehl gegen eine 12.x austauschen musst.

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

                                    Gibt es für NPM auch dann eine Notwendigkeit diese upzugraden?

                                    Das wird automatisch mit ugegradet

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

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

                                      rwendeten System ab.

                                      Orange Pi (image aus dem Forum) Also Debian

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

                                        @SolarGuido Da läuft ein Linux drauf? Debian?

                                        Homoran 1 Reply Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @Thomas Braun last edited by

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

                                          Da läuft ein Linux drauf? Debian?

                                          Armbian

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            SolarGuido @Homoran last edited by

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

                                            ass du die 10.x in dem Befehl gegen eine 12.x austauschen mu

                                            Ok, dann vielen Dank!

                                            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

                                            820
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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