Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [How-to] Node.js für ioBroker richtig updaten

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    17
    1
    538

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    5.4k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.4k

[How-to] Node.js für ioBroker richtig updaten

Scheduled Pinned Locked Moved ioBroker Allgemein
installationlinuxnodenode.jsnodejswindows
1.1k Posts 106 Posters 774.4k Views 112 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MathiasJM Offline
    MathiasJM Offline
    MathiasJ
    wrote on last edited by MathiasJ
    #357

    So, eine neue SD Karte geflasht, IObroker installiert mit Node 12, IObroker.ble und IObroker.radar laufen immer noch nicht. Wie auf der damaligen Testinstallation läuft Bluetooth low energy nicht.
    Siehe auch https://forum.iobroker.net/topic/23703/testinstallation-unter-node-12-6-0/33

    IObroker auf dem NUC als VM.
    Da ich noch keine Aktoren habe, wird momentan via Radar nur der AB der Fritzbox ein- und ausgeschaltet.
    Welches Smarthome-System es letztendlich wird, weiß ich noch nicht. Vielleicht kommen auch nur Zigbee-Geräte ins Haus.

    1 Reply Last reply
    0
    • crunchipC crunchip

      @Stabilostick

      root@IoBroker:/opt/iobroker# npm ls rpi-gpio
      iobroker.inst@2.0.3 /opt/iobroker
      └─┬ iobroker.rpi2@1.0.0
       └── rpi-gpio@1.0.0
      
      

      dann wäre ja die einfachste Lösung, ich deinstalliere den Adapter, da er momentan nicht mehr in Gebrauch ist.
      Dieser war noch aus der Raspberry Zeit und Multihostbetrieb.

      S Offline
      S Offline
      Sneak-L8
      wrote on last edited by Sneak-L8
      #358

      Hallo zusammen,

      ich hänge auch gerade am Update des node.js auf den aktuellsten Stand. Und hänge am epoll-Fehler.

      Habe schon

      npm uninstall epoll@0.1.22
      

      gemacht und den Adapter deinstalliert und auch eine neue Vesion installiert. Hat baer nichts geholfen. Beim Blick auf die Abhängigkeiten:

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

      @Stabilostick

      root@IoBroker:/opt/iobroker# npm ls rpi-gpio
      iobroker.inst@2.0.3 /opt/iobroker
      └─┬ iobroker.rpi2@1.0.0
       └── rpi-gpio@1.0.0
      
      

      dann wäre ja die einfachste Lösung, ich deinstalliere den Adapter, da er momentan nicht mehr in Gebrauch ist.
      Dieser war noch aus der Raspberry Zeit und Multihostbetrieb.

      bekomme ich leider einen Fehler:

      pi@ioBroker-RasPi:/opt/iobroker $ npm ls rpi-gpio
      iobroker.inst@1.3.1 /opt/iobroker
      └── rpi-gpio@1.0.0  extraneous
      
      npm ERR! extraneous: rpi-gpio@1.0.0 /opt/iobroker/node_modules/rpi-gpio
      

      Ein weiterer "npm rebuild" zeigt, dass wohl mehrere Versionen von epoll installiert werdne sollen:

      > epoll@2.0.9 install /opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll
      > node-gyp rebuild
      
      make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird betreten
        CXX(target) Release/obj.target/epoll/src/epoll.o
        SOLINK_MODULE(target) Release/obj.target/epoll.node
        COPY Release/epoll.node
      make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird verlassen
      
      > epoll@2.0.9 install /opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll
      > node-gyp rebuild
      
      make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird betreten
        CXX(target) Release/obj.target/epoll/src/epoll.o
        SOLINK_MODULE(target) Release/obj.target/epoll.node
        COPY Release/epoll.node
      make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird verlassen
      
      > epoll@0.1.22 install /opt/iobroker/node_modules/rpi-gpio/node_modules/epoll
      > node-gyp rebuild
      

      Hat da jemand einen Tipp für mich?

      Thomas BraunT 1 Reply Last reply
      0
      • S Sneak-L8

        Hallo zusammen,

        ich hänge auch gerade am Update des node.js auf den aktuellsten Stand. Und hänge am epoll-Fehler.

        Habe schon

        npm uninstall epoll@0.1.22
        

        gemacht und den Adapter deinstalliert und auch eine neue Vesion installiert. Hat baer nichts geholfen. Beim Blick auf die Abhängigkeiten:

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

        @Stabilostick

        root@IoBroker:/opt/iobroker# npm ls rpi-gpio
        iobroker.inst@2.0.3 /opt/iobroker
        └─┬ iobroker.rpi2@1.0.0
         └── rpi-gpio@1.0.0
        
        

        dann wäre ja die einfachste Lösung, ich deinstalliere den Adapter, da er momentan nicht mehr in Gebrauch ist.
        Dieser war noch aus der Raspberry Zeit und Multihostbetrieb.

        bekomme ich leider einen Fehler:

        pi@ioBroker-RasPi:/opt/iobroker $ npm ls rpi-gpio
        iobroker.inst@1.3.1 /opt/iobroker
        └── rpi-gpio@1.0.0  extraneous
        
        npm ERR! extraneous: rpi-gpio@1.0.0 /opt/iobroker/node_modules/rpi-gpio
        

        Ein weiterer "npm rebuild" zeigt, dass wohl mehrere Versionen von epoll installiert werdne sollen:

        > epoll@2.0.9 install /opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll
        > node-gyp rebuild
        
        make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird betreten
          CXX(target) Release/obj.target/epoll/src/epoll.o
          SOLINK_MODULE(target) Release/obj.target/epoll.node
          COPY Release/epoll.node
        make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird verlassen
        
        > epoll@2.0.9 install /opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll
        > node-gyp rebuild
        
        make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird betreten
          CXX(target) Release/obj.target/epoll/src/epoll.o
          SOLINK_MODULE(target) Release/obj.target/epoll.node
          COPY Release/epoll.node
        make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird verlassen
        
        > epoll@0.1.22 install /opt/iobroker/node_modules/rpi-gpio/node_modules/epoll
        > node-gyp rebuild
        

        Hat da jemand einen Tipp für mich?

        Thomas BraunT Online
        Thomas BraunT Online
        Thomas Braun
        Most Active
        wrote on last edited by
        #359

        @Sneak-L8 Auf welchem System? Debian?

        Linux-Werkzeugkasten:
        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
        NodeJS Fixer Skript:
        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sneak-L8
          wrote on last edited by
          #360

          Ah, sorry, Raspi 3+ mit ioBroker-Image

          Thomas BraunT 1 Reply Last reply
          0
          • S Sneak-L8

            Ah, sorry, Raspi 3+ mit ioBroker-Image

            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            wrote on last edited by
            #361

            @Sneak-L8

            nodejs -v
            node -v
            npm -v
            sudo apt update
            apt policy nodejs
            sudo apt upgrade
            

            Linux-Werkzeugkasten:
            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
            NodeJS Fixer Skript:
            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Sneak-L8
              wrote on last edited by
              #362

              Hab ich gerade durchgeführt und anschließend einen npm rebuild versucht. Immer noch der gleiche Fehler.

              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-13T20_33_28_983Z-debug.log
              
              apollon77A 1 Reply Last reply
              0
              • S Sneak-L8

                Hab ich gerade durchgeführt und anschließend einen npm rebuild versucht. Immer noch der gleiche Fehler.

                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-13T20_33_28_983Z-debug.log
                
                apollon77A Offline
                apollon77A Offline
                apollon77
                wrote on last edited by
                #363

                @Sneak-L8 Und bricht er das rebuild dort ab oder was ist die Ausgabe am Ende?

                Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Sneak-L8
                  wrote on last edited by Sneak-L8
                  #364

                  Ja, der Build wird an dieser Stelle mit Fehler beendet.

                  Hier mal etwas mehr Log-Output:

                  > node-pre-gyp install --fallback-to-build
                  
                  node-pre-gyp WARN Using request for node-pre-gyp https download
                  [sqlite3] Success: "/opt/iobroker/node_modules/sqlite3/lib/binding/node-v64-linux-arm/node_sqlite3.node" already installed
                  Pass --update-binary to reinstall or --build-from-source to recompile
                  
                  > epoll@2.0.9 install /opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll
                  > node-gyp rebuild
                  
                  make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird betreten
                    CXX(target) Release/obj.target/epoll/src/epoll.o
                    SOLINK_MODULE(target) Release/obj.target/epoll.node
                    COPY Release/epoll.node
                  make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird verlassen
                  
                  > epoll@2.0.9 install /opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll
                  > node-gyp rebuild
                  
                  make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird betreten
                    CXX(target) Release/obj.target/epoll/src/epoll.o
                    SOLINK_MODULE(target) Release/obj.target/epoll.node
                    COPY Release/epoll.node
                  make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird verlassen
                  
                  > 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:
                  ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8: :Value>, v8::PropertyAttribute)’:
                  ../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
                     return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
                                 ^~~~~~~~
                  In file included from ../src/epoll.cc:15:0:
                  ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local< v8::Value>*)’:
                  ../../nan/nan.h:835:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Functio n>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                           v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                              ^
                  In file included from ../src/epoll.cc:12:0:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:177:50: note: declared here
                                   NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                    ^
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                       __attribute__((deprecated(message))) declarator
                                                            ^~~~~~~~~~
                  In file included from ../src/epoll.cc:15:0:
                  ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8 ::Value>*)’:
                  ../../nan/nan.h:850:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String> , int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                           v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                                ^
                  In file included from ../src/epoll.cc:12:0:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:170:50: note: declared here
                                   NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                    ^
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                       __attribute__((deprecated(message))) declarator
                                                            ^~~~~~~~~~
                  In file included from ../src/epoll.cc:15:0:
                  ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*  ’:
                  ../../nan/nan.h:865:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8: :Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                           v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                                ^
                  In file included from ../src/epoll.cc:12:0:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:163:50: note: declared here
                                   NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                    ^
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                       __attribute__((deprecated(message))) declarator
                                                            ^~~~~~~~~~
                  In file included from ../src/epoll.cc:15:0:
                  ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v 8::Value>*) const’:
                  ../../nan/nan.h:1479:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Functio n>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                       ));
                       ^
                  In file included from ../src/epoll.cc:12:0:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:177:50: note: declared here
                                   NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                    ^
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                       __attribute__((deprecated(message))) declarator
                                                            ^~~~~~~~~~
                  ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Add(Nan::NAN_METHOD_ARGS_TYPE)’:
                  ../src/epoll.cc:210:44: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                     int err = epoll->Add(info[0]->Int32Value(), info[1]->Int32Value());
                                                              ^
                  In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                   from ../src/epoll.cc:11:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                ^
                  /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)))
                     ^~~~~~~~~~
                  ../src/epoll.cc:210:67: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                     int err = epoll->Add(info[0]->Int32Value(), info[1]->Int32Value());
                                                                                     ^
                  In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                   from ../src/epoll.cc:11:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                ^
                  /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)))
                     ^~~~~~~~~~
                  ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Modify(Nan::NAN_METHOD_ARGS_TYPE)’:
                  ../src/epoll.cc:230:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                     int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                                                                 ^
                  In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                   from ../src/epoll.cc:11:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                ^
                  /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)))
                     ^~~~~~~~~~
                  ../src/epoll.cc:230:70: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                     int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                                                                                        ^
                  In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                   from ../src/epoll.cc:11:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                ^
                  /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)))
                     ^~~~~~~~~~
                  ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Remove(Nan::NAN_METHOD_ARGS_TYPE)’:
                  ../src/epoll.cc:247:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                     int err = epoll->Remove(info[0]->Int32Value());
                                                                 ^
                  In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                   from ../src/epoll.cc:11:
                  /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                     V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                ^
                  /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-14T06_54_15_971Z-debug.log
                  pi@ioBroker-RasPi:/opt/iobroker $
                  

                  apollon77A 1 Reply Last reply
                  0
                  • S Sneak-L8

                    Ja, der Build wird an dieser Stelle mit Fehler beendet.

                    Hier mal etwas mehr Log-Output:

                    > node-pre-gyp install --fallback-to-build
                    
                    node-pre-gyp WARN Using request for node-pre-gyp https download
                    [sqlite3] Success: "/opt/iobroker/node_modules/sqlite3/lib/binding/node-v64-linux-arm/node_sqlite3.node" already installed
                    Pass --update-binary to reinstall or --build-from-source to recompile
                    
                    > epoll@2.0.9 install /opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll
                    > node-gyp rebuild
                    
                    make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird betreten
                      CXX(target) Release/obj.target/epoll/src/epoll.o
                      SOLINK_MODULE(target) Release/obj.target/epoll.node
                      COPY Release/epoll.node
                    make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird verlassen
                    
                    > epoll@2.0.9 install /opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll
                    > node-gyp rebuild
                    
                    make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird betreten
                      CXX(target) Release/obj.target/epoll/src/epoll.o
                      SOLINK_MODULE(target) Release/obj.target/epoll.node
                      COPY Release/epoll.node
                    make: Verzeichnis „/opt/iobroker/node_modules/iobroker.rpi2/node_modules/epoll/build“ wird verlassen
                    
                    > 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:
                    ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8: :Value>, v8::PropertyAttribute)’:
                    ../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
                       return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
                                   ^~~~~~~~
                    In file included from ../src/epoll.cc:15:0:
                    ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local< v8::Value>*)’:
                    ../../nan/nan.h:835:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Functio n>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                             v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                                                ^
                    In file included from ../src/epoll.cc:12:0:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:177:50: note: declared here
                                     NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                      ^
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                         __attribute__((deprecated(message))) declarator
                                                              ^~~~~~~~~~
                    In file included from ../src/epoll.cc:15:0:
                    ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8 ::Value>*)’:
                    ../../nan/nan.h:850:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String> , int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                             v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                                                  ^
                    In file included from ../src/epoll.cc:12:0:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:170:50: note: declared here
                                     NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                      ^
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                         __attribute__((deprecated(message))) declarator
                                                              ^~~~~~~~~~
                    In file included from ../src/epoll.cc:15:0:
                    ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*  ’:
                    ../../nan/nan.h:865:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8: :Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                             v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                                                  ^
                    In file included from ../src/epoll.cc:12:0:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:163:50: note: declared here
                                     NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                      ^
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                         __attribute__((deprecated(message))) declarator
                                                              ^~~~~~~~~~
                    In file included from ../src/epoll.cc:15:0:
                    ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v 8::Value>*) const’:
                    ../../nan/nan.h:1479:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Functio n>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
                         ));
                         ^
                    In file included from ../src/epoll.cc:12:0:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:177:50: note: declared here
                                     NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                                      ^
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
                         __attribute__((deprecated(message))) declarator
                                                              ^~~~~~~~~~
                    ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Add(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/epoll.cc:210:44: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                       int err = epoll->Add(info[0]->Int32Value(), info[1]->Int32Value());
                                                                ^
                    In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                     from ../src/epoll.cc:11:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                       V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                  ^
                    /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)))
                       ^~~~~~~~~~
                    ../src/epoll.cc:210:67: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                       int err = epoll->Add(info[0]->Int32Value(), info[1]->Int32Value());
                                                                                       ^
                    In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                     from ../src/epoll.cc:11:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                       V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                  ^
                    /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)))
                       ^~~~~~~~~~
                    ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Modify(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/epoll.cc:230:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                       int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                                                                   ^
                    In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                     from ../src/epoll.cc:11:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                       V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                  ^
                    /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)))
                       ^~~~~~~~~~
                    ../src/epoll.cc:230:70: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                       int err = epoll->Modify(info[0]->Int32Value(), info[1]->Int32Value());
                                                                                          ^
                    In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                     from ../src/epoll.cc:11:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                       V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                  ^
                    /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)))
                       ^~~~~~~~~~
                    ../src/epoll.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Epoll::Remove(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/epoll.cc:247:47: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declaration  ]
                       int err = epoll->Remove(info[0]->Int32Value());
                                                                   ^
                    In file included from /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:26:0,
                                     from ../src/epoll.cc:11:
                    /home/iobroker/.cache/node-gyp/10.20.1/include/node/v8.h:2478:46: note: declared here
                       V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
                                                                  ^
                    /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-14T06_54_15_971Z-debug.log
                    pi@ioBroker-RasPi:/opt/iobroker $
                    

                    apollon77A Offline
                    apollon77A Offline
                    apollon77
                    wrote on last edited by
                    #365

                    @Sneak-L8 Welche Version von rpi2 adapter hast Du installiert? Dein "epoll" ist asbach uralt und nicht mit nodejs 10 kompatibel ... update mal rpi2 Adapter

                    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                    S 1 Reply Last reply
                    0
                    • apollon77A apollon77

                      @Sneak-L8 Welche Version von rpi2 adapter hast Du installiert? Dein "epoll" ist asbach uralt und nicht mit nodejs 10 kompatibel ... update mal rpi2 Adapter

                      S Offline
                      S Offline
                      Sneak-L8
                      wrote on last edited by Sneak-L8
                      #366

                      @apollon77 Der Adapter RPI2 hat die Version 1.1.1. Laut Änderungsprotokoll gibt es nur eine neuere Version 1.2.0, die die automatische Adapter-Prüfung aber nicht vorschlägt.
                      Evtl. manuell drüber installieren? aber wie genau?

                      Ich habe jetzt mal gesagt, bestimmte RPI2-Version installieren und die 1.1.1 gewählt. Danach habe ich erneut einen npm rebuild gemacht. Gleicher Fehler. Hab aber gesehen, dass der rebuild mit einem epoll 3.0.0 startet. Also irgendwie will er wohl auch noch die alte Version umwandeln. Aber warum?
                      npm uninstall epoll@0.1.22 hatte ich schon mal versucht.

                      apollon77A 1 Reply Last reply
                      0
                      • S Sneak-L8

                        @apollon77 Der Adapter RPI2 hat die Version 1.1.1. Laut Änderungsprotokoll gibt es nur eine neuere Version 1.2.0, die die automatische Adapter-Prüfung aber nicht vorschlägt.
                        Evtl. manuell drüber installieren? aber wie genau?

                        Ich habe jetzt mal gesagt, bestimmte RPI2-Version installieren und die 1.1.1 gewählt. Danach habe ich erneut einen npm rebuild gemacht. Gleicher Fehler. Hab aber gesehen, dass der rebuild mit einem epoll 3.0.0 startet. Also irgendwie will er wohl auch noch die alte Version umwandeln. Aber warum?
                        npm uninstall epoll@0.1.22 hatte ich schon mal versucht.

                        apollon77A Offline
                        apollon77A Offline
                        apollon77
                        wrote on last edited by
                        #367

                        @Sneak-L8 Dann mach mal npm ls im Verzeichnis node_modules/iobroker.rpi2 und Zeig mal die Ausgabe

                        Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                        • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                        • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                        S 1 Reply Last reply
                        0
                        • apollon77A apollon77

                          @Sneak-L8 Dann mach mal npm ls im Verzeichnis node_modules/iobroker.rpi2 und Zeig mal die Ausgabe

                          S Offline
                          S Offline
                          Sneak-L8
                          wrote on last edited by
                          #368

                          @apollon77 Bitte schön:

                          pi@ioBroker-RasPi:/opt/iobroker/node_modules/iobroker.rpi2 $ npm ls
                          iobroker.rpi2@1.1.1 /opt/iobroker/node_modules/iobroker.rpi2
                          ├── UNMET DEPENDENCY @iobroker/adapter-core@^1.0.3
                          ├─┬ rpi-gpio@2.1.5
                          │ ├── UNMET DEPENDENCY async-retry@^1.2.1
                          │ ├─┬ debug@3.2.6
                          │ │ └── ms@2.1.2
                          │ └─┬ epoll@2.0.10
                          │   ├── UNMET DEPENDENCY bindings@^1.5.0
                          │   └── UNMET DEPENDENCY nan@^2.14.0
                          └── UNMET DEPENDENCY sync-exec@^0.6.2
                          
                          npm ERR! missing: @iobroker/adapter-core@^1.0.3, required by iobroker.rpi2@1.1.1
                          npm ERR! missing: sync-exec@^0.6.2, required by iobroker.rpi2@1.1.1
                          npm ERR! missing: async-retry@^1.2.1, required by rpi-gpio@2.1.5
                          npm ERR! missing: bindings@^1.5.0, required by epoll@2.0.10
                          npm ERR! missing: nan@^2.14.0, required by epoll@2.0.10
                          
                          apollon77A 1 Reply Last reply
                          0
                          • SteffS Offline
                            SteffS Offline
                            Steff
                            wrote on last edited by
                            #369

                            Hallo,
                            ich habe da auch mal eine Frage bzgl. dem richtigen Node updaten. Ich habe bei mir Node V10.17.0 am Laufen und mir wird ein mögliches Update auf die V10.20.1 angezeigt. Muss bei solch einem Update ebenfalls ein npm rebuild durchgeführt werden?
                            Gruß Steffen

                            ioBroker auf Intel NUC 7CJYH / Debian 12 / States & Objects in JSONL / Repo --> Beta / HM CCU2 V2.61.7 / Siemens LOGO! (0BA7 / 0BA8)
                            Admin V7.7.22 / Node V22.21.0 / NPM V10.9.4 / JSC V7.1.0 / JSE V9.0.17

                            Thomas BraunT 1 Reply Last reply
                            0
                            • SteffS Steff

                              Hallo,
                              ich habe da auch mal eine Frage bzgl. dem richtigen Node updaten. Ich habe bei mir Node V10.17.0 am Laufen und mir wird ein mögliches Update auf die V10.20.1 angezeigt. Muss bei solch einem Update ebenfalls ein npm rebuild durchgeführt werden?
                              Gruß Steffen

                              Thomas BraunT Online
                              Thomas BraunT Online
                              Thomas Braun
                              Most Active
                              wrote on last edited by
                              #370

                              @Steff Ich würde es machen. Steht auch wohl nicht ganz ohne Grund so in der Anleitung drin.

                              Linux-Werkzeugkasten:
                              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                              NodeJS Fixer Skript:
                              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                              J 1 Reply Last reply
                              1
                              • Thomas BraunT Thomas Braun

                                @Steff Ich würde es machen. Steht auch wohl nicht ganz ohne Grund so in der Anleitung drin.

                                J Offline
                                J Offline
                                Jan1
                                wrote on last edited by Jan1
                                #371

                                @Thomas-Braun
                                Dann zeig mir mal die Anleitung wo das drin steht, dass wenn man innerhalb der Grundversion ein Update durchführt, ein rebuild durchführen muss ;-)

                                Thomas BraunT 1 Reply Last reply
                                1
                                • J Jan1

                                  @Thomas-Braun
                                  Dann zeig mir mal die Anleitung wo das drin steht, dass wenn man innerhalb der Grundversion ein Update durchführt, ein rebuild durchführen muss ;-)

                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  wrote on last edited by
                                  #372

                                  @Jan1 Bei minor-upgrades nicht unbedingt erforderlich, aber es schadet auch nicht. Und wenn man es gewohnheitsmäßig macht vergisst man es auch nicht bei major updates.

                                  Linux-Werkzeugkasten:
                                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                  NodeJS Fixer Skript:
                                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                  1 Reply Last reply
                                  1
                                  • cvidalC Offline
                                    cvidalC Offline
                                    cvidal
                                    Forum Testing
                                    wrote on last edited by
                                    #373

                                    Ich habe das selbe Problem wie @Sneak-L8, bei npm rebuild bekomme ich folgendes raus:


                                    root@IoBroker:/home/christian# cd /opt/iobroker
                                    root@IoBroker:/opt/iobroker# npm rebuild

                                    iobroker.js-controller@2.2.9 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                    node lib/preinstallCheck.js

                                    NPM version: 6.14.4

                                    iobroker.js-controller@2.2.9 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

                                    authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam
                                    node-gyp rebuild

                                    make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
                                    CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
                                    ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’:
                                    ../authenticate_pam.cc:107:87: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated [-Wdeprecated-declarations]
                                    keCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);
                                    ^
                                    In file included from ../authenticate_pam.cc:23:0:
                                    ../../nan/nan.h:1024:46: note: declared here
                                    NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
                                    ^~~~~~~~~~~~
                                    ../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’:
                                    ../authenticate_pam.cc:147:83: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declaration ]
                                    al<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked());
                                    ^
                                    In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,
                                    from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:27,
                                    from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67,
                                    from ../../nan/nan.h:54,
                                    from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:3553:51: note: declared here
                                    V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                    ^
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                    declarator attribute((deprecated(message)))
                                    ^~~~~~~~~~
                                    ../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                                    serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1);
                                    ^
                                    In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
                                    from ../../nan/nan.h:54,
                                    from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate
                                    , char*, int, int*, int) const
                                    int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                    ^~~~~~~~~
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
                                    ../authenticate_pam.cc:152:69: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declaration ]
                                    res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked());
                                    ^
                                    In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,
                                    from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:27,
                                    from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67,
                                    from ../../nan/nan.h:54,
                                    from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:3553:51: note: declared here
                                    V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                    ^
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                    declarator attribute((deprecated(message)))
                                    ^~~~~~~~~~
                                    ../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                                    remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1);
                                    ^
                                    In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
                                    from ../../nan/nan.h:54,
                                    from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
                                    int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                    ^~~~~~~~~
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
                                    ../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                                    username->WriteUtf8(m->username, sizeof(m->username) - 1);
                                    ^
                                    In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
                                    from ../../nan/nan.h:54,
                                    from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
                                    int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                    ^~~~~~~~~
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
                                    ../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                                    password->WriteUtf8(m->password, sizeof(m->password) - 1);
                                    ^
                                    In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
                                    from ../../nan/nan.h:54,
                                    from ../authenticate_pam.cc:23:
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
                                    int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                    ^~~~~~~~~
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
                                    ../authenticate_pam.cc: At global scope:
                                    ../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void
                                    void init(Handle<Object> exports) {
                                    ^~~~~~
                                    ../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope
                                    ../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token
                                    void init(Handle<Object> exports) {
                                    ^
                                    ../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope
                                    void init(Handle<Object> exports) {
                                    ^~~~~~~
                                    In file included from ../../nan/nan.h:54:0,
                                    from ../authenticate_pam.cc:23:
                                    ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope
                                    NODE_MODULE(authenticate_pam, init);
                                    ^
                                    /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                    (node::addon_register_func) (regfunc),
                                    ^~~~~~~
                                    ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’
                                    NODE_MODULE(authenticate_pam, init);
                                    ^~~~~~~~~~~
                                    authenticate_pam.target.mk:111: die Regel für Ziel „Release/obj.target/authenticate_pam/authenticate_pam.o“ scheiterte
                                    make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
                                    make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/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:194:23)
                                    gyp ERR! stack at ChildProcess.emit (events.js:310:20)
                                    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
                                    gyp ERR! System Linux 4.9.0-11-amd64
                                    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/authenticate-pam
                                    gyp ERR! node -v v12.16.2
                                    gyp ERR! node-gyp -v v5.1.0
                                    gyp ERR! not ok
                                    npm ERR! code ELIFECYCLE
                                    npm ERR! errno 1
                                    npm ERR! authenticate-pam@1.0.2 install: node-gyp rebuild
                                    npm ERR! Exit status 1
                                    npm ERR!
                                    npm ERR! Failed at the authenticate-pam@1.0.2 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-14T20_27_54_800Z-debug.log
                                    root@IoBroker:/opt/iobroker#

                                    Alles läuft soweit ohne Errors bei mir ist der VW Connect Adapter das Problem. Bekomme fehler im Log und der Adapter Startet nicht.


                                    host.IoBroker 2020-04-14 22:30:58.371 info Restart adapter system.adapter.vw-connect.0 because enabled
                                    host.IoBroker 2020-04-14 22:30:58.371 error instance system.adapter.vw-connect.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                                    host.IoBroker 2020-04-14 22:30:58.371 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:899:14)
                                    host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:1000:32)
                                    host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
                                    host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1156:30)
                                    host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/canvas/lib/bindings.js:3:18)
                                    host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at require (internal/modules/cjs/helpers.js:77:18)
                                    host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1042:19)
                                    host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:899:14)
                                    host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:1000:32)
                                    host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1206:18)
                                    host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: the module (for instance, using npm rebuild or npm install).
                                    host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
                                    host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: NODE_MODULE_VERSION 64. This version of Node.js requires
                                    host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: was compiled against a different Node.js version using
                                    host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node'
                                    host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: ^
                                    host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename));
                                    host.IoBroker 2020-04-14 22:30:58.368 error Caught by controller[0]: internal/modules/cjs/loader.js:1206
                                    host.IoBroker 2020-04-14 22:30:57.978 info instance system.adapter.vw-connect.0 started with pid 28748

                                    Hier komme ich nicht weiter.

                                    Thomas BraunT apollon77A 2 Replies Last reply
                                    0
                                    • cvidalC cvidal

                                      Ich habe das selbe Problem wie @Sneak-L8, bei npm rebuild bekomme ich folgendes raus:


                                      root@IoBroker:/home/christian# cd /opt/iobroker
                                      root@IoBroker:/opt/iobroker# npm rebuild

                                      iobroker.js-controller@2.2.9 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                                      node lib/preinstallCheck.js

                                      NPM version: 6.14.4

                                      iobroker.js-controller@2.2.9 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

                                      authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam
                                      node-gyp rebuild

                                      make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/build“ wird betreten
                                      CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o
                                      ../authenticate_pam.cc: In function ‘void after_doing_auth(uv_work_t*, int)’:
                                      ../authenticate_pam.cc:107:87: warning: ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated [-Wdeprecated-declarations]
                                      keCallback(Nan::GetCurrentContext()->Global(), Nan::New(m->callback), 1, args);
                                      ^
                                      In file included from ../authenticate_pam.cc:23:0:
                                      ../../nan/nan.h:1024:46: note: declared here
                                      NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
                                      ^~~~~~~~~~~~
                                      ../authenticate_pam.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE Authenticate(Nan::NAN_METHOD_ARGS_TYPE)’:
                                      ../authenticate_pam.cc:147:83: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declaration ]
                                      al<Value> res = options->Get(Nan::New<String>("serviceName").ToLocalChecked());
                                      ^
                                      In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,
                                      from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:27,
                                      from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67,
                                      from ../../nan/nan.h:54,
                                      from ../authenticate_pam.cc:23:
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:3553:51: note: declared here
                                      V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                      ^
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                      declarator attribute((deprecated(message)))
                                      ^~~~~~~~~~
                                      ../authenticate_pam.cc:150:69: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                                      serviceName->WriteUtf8(m->serviceName, sizeof(m->serviceName) - 1);
                                      ^
                                      In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
                                      from ../../nan/nan.h:54,
                                      from ../authenticate_pam.cc:23:
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate
                                      , char*, int, int*, int) const
                                      int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                      ^~~~~~~~~
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
                                      ../authenticate_pam.cc:152:69: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declaration ]
                                      res = options->Get(Nan::New<String>("remoteHost").ToLocalChecked());
                                      ^
                                      In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8-internal.h:14:0,
                                      from /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:27,
                                      from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67,
                                      from ../../nan/nan.h:54,
                                      from ../authenticate_pam.cc:23:
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:3553:51: note: declared here
                                      V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                      ^
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                      declarator attribute((deprecated(message)))
                                      ^~~~~~~~~~
                                      ../authenticate_pam.cc:155:66: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                                      remoteHost->WriteUtf8(m->remoteHost, sizeof(m->remoteHost) - 1);
                                      ^
                                      In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
                                      from ../../nan/nan.h:54,
                                      from ../authenticate_pam.cc:23:
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
                                      int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                      ^~~~~~~~~
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
                                      ../authenticate_pam.cc:160:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                                      username->WriteUtf8(m->username, sizeof(m->username) - 1);
                                      ^
                                      In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
                                      from ../../nan/nan.h:54,
                                      from ../authenticate_pam.cc:23:
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
                                      int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                      ^~~~~~~~~
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
                                      ../authenticate_pam.cc:161:58: error: no matching function for call to ‘v8::String::WriteUtf8(char [128], long unsigned int)’
                                      password->WriteUtf8(m->password, sizeof(m->password) - 1);
                                      ^
                                      In file included from /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:67:0,
                                      from ../../nan/nan.h:54,
                                      from ../authenticate_pam.cc:23:
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
                                      int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                                      ^~~~~~~~~
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char [128]’ to ‘v8::Isolate*’
                                      ../authenticate_pam.cc: At global scope:
                                      ../authenticate_pam.cc:170:11: error: variable or field ‘init’ declared void
                                      void init(Handle<Object> exports) {
                                      ^~~~~~
                                      ../authenticate_pam.cc:170:11: error: ‘Handle’ was not declared in this scope
                                      ../authenticate_pam.cc:170:24: error: expected primary-expression before ‘>’ token
                                      void init(Handle<Object> exports) {
                                      ^
                                      ../authenticate_pam.cc:170:26: error: ‘exports’ was not declared in this scope
                                      void init(Handle<Object> exports) {
                                      ^~~~~~~
                                      In file included from ../../nan/nan.h:54:0,
                                      from ../authenticate_pam.cc:23:
                                      ../authenticate_pam.cc:175:31: error: ‘init’ was not declared in this scope
                                      NODE_MODULE(authenticate_pam, init);
                                      ^
                                      /home/iobroker/.cache/node-gyp/12.16.2/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                      (node::addon_register_func) (regfunc),
                                      ^~~~~~~
                                      ../authenticate_pam.cc:175:1: note: in expansion of macro ‘NODE_MODULE’
                                      NODE_MODULE(authenticate_pam, init);
                                      ^~~~~~~~~~~
                                      authenticate_pam.target.mk:111: die Regel für Ziel „Release/obj.target/authenticate_pam/authenticate_pam.o“ scheiterte
                                      make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Fehler 1
                                      make: Verzeichnis „/opt/iobroker/node_modules/authenticate-pam/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:194:23)
                                      gyp ERR! stack at ChildProcess.emit (events.js:310:20)
                                      gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
                                      gyp ERR! System Linux 4.9.0-11-amd64
                                      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/authenticate-pam
                                      gyp ERR! node -v v12.16.2
                                      gyp ERR! node-gyp -v v5.1.0
                                      gyp ERR! not ok
                                      npm ERR! code ELIFECYCLE
                                      npm ERR! errno 1
                                      npm ERR! authenticate-pam@1.0.2 install: node-gyp rebuild
                                      npm ERR! Exit status 1
                                      npm ERR!
                                      npm ERR! Failed at the authenticate-pam@1.0.2 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-14T20_27_54_800Z-debug.log
                                      root@IoBroker:/opt/iobroker#

                                      Alles läuft soweit ohne Errors bei mir ist der VW Connect Adapter das Problem. Bekomme fehler im Log und der Adapter Startet nicht.


                                      host.IoBroker 2020-04-14 22:30:58.371 info Restart adapter system.adapter.vw-connect.0 because enabled
                                      host.IoBroker 2020-04-14 22:30:58.371 error instance system.adapter.vw-connect.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
                                      host.IoBroker 2020-04-14 22:30:58.371 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:899:14)
                                      host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:1000:32)
                                      host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
                                      host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:1156:30)
                                      host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Object.<anonymous> (/opt/iobroker/node_modules/canvas/lib/bindings.js:3:18)
                                      host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at require (internal/modules/cjs/helpers.js:77:18)
                                      host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:1042:19)
                                      host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:899:14)
                                      host.IoBroker 2020-04-14 22:30:58.370 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:1000:32)
                                      host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:1206:18)
                                      host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: the module (for instance, using npm rebuild or npm install).
                                      host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: NODE_MODULE_VERSION 72. Please try re-compiling or re-installing
                                      host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: NODE_MODULE_VERSION 64. This version of Node.js requires
                                      host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: was compiled against a different Node.js version using
                                      host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/canvas/build/Release/canvas.node'
                                      host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: ^
                                      host.IoBroker 2020-04-14 22:30:58.369 error Caught by controller[0]: return process.dlopen(module, path.toNamespacedPath(filename));
                                      host.IoBroker 2020-04-14 22:30:58.368 error Caught by controller[0]: internal/modules/cjs/loader.js:1206
                                      host.IoBroker 2020-04-14 22:30:57.978 info instance system.adapter.vw-connect.0 started with pid 28748

                                      Hier komme ich nicht weiter.

                                      Thomas BraunT Online
                                      Thomas BraunT Online
                                      Thomas Braun
                                      Most Active
                                      wrote on last edited by Thomas Braun
                                      #374

                                      @cvidal Welche Version von node ist installiert?

                                      node -v
                                      nodejs -v
                                      

                                      Also root würde ich mich auch nicht anmelden.

                                      Linux-Werkzeugkasten:
                                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                      NodeJS Fixer Skript:
                                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                      cvidalC 1 Reply Last reply
                                      0
                                      • crunchipC Away
                                        crunchipC Away
                                        crunchip
                                        Forum Testing Most Active
                                        wrote on last edited by
                                        #375

                                        wie komme ich am dümmsten von v10.19 auf die 10.20, ohne den apt update && apt upgrade Befehl?
                                        Hintergrund,
                                        Bluetooth bekomme ich nicht mehr zum laufen, wenn ich die übliche Variante wähle. Daher bin ich erstmal wieder zurück via backup.
                                        dfd4273e-91e0-4cb9-bb61-66a4cb8081e7-image.png

                                        umgestiegen von Proxmox auf Unraid

                                        Thomas BraunT 1 Reply Last reply
                                        0
                                        • Thomas BraunT Thomas Braun

                                          @cvidal Welche Version von node ist installiert?

                                          node -v
                                          nodejs -v
                                          

                                          Also root würde ich mich auch nicht anmelden.

                                          cvidalC Offline
                                          cvidalC Offline
                                          cvidal
                                          Forum Testing
                                          wrote on last edited by
                                          #376

                                          @Thomas-Braun Ich nutze 12.16.2, ich weiß wird noch nicht empfohlen aber das sollte dem Adapter nichts ausmachen.

                                          Thomas BraunT 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          526

                                          Online

                                          32.7k

                                          Users

                                          82.5k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe