Skip to content
  • 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
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [How-to] Node.js für ioBroker richtig updaten

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.1k

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

Scheduled Pinned Locked Moved ioBroker Allgemein
installationlinuxnodenode.jsnodejswindows
1.1k Posts 106 Posters 737.9k 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.
  • S Sneak-L8

    @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 Online
    apollon77A Online
    apollon77
    wrote on last edited by
    #379

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

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

    Dann versuch nochmal

    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
    • 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.

      apollon77A Online
      apollon77A Online
      apollon77
      wrote on last edited by
      #380

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

      authenticate_pam

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

      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
      cvidalC 1 Reply Last reply
      0
      • apollon77A apollon77

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

        authenticate_pam

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

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

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

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

        authenticate_pam

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

        Sollte ich das unter cd /opt/iobroker machen?

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

        1 Reply Last reply
        0
        • Thomas BraunT Thomas Braun

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

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

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

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

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

          1 Reply Last reply
          0
          • apollon77A apollon77

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

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

            Dann versuch nochmal

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

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

            npm install --production
            

            schlägt wieder mit demselben Befehl fehl:

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

            Er will erneut epoll 0.1.22 installieren...

            apollon77A 1 Reply Last reply
            0
            • S Sneak-L8

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

              npm install --production
              

              schlägt wieder mit demselben Befehl fehl:

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

              Er will erneut epoll 0.1.22 installieren...

              apollon77A Online
              apollon77A Online
              apollon77
              wrote on last edited by
              #384

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

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

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

              npm install --production

              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
                #385

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

                1 Reply Last reply
                0
                • Thomas BraunT Thomas Braun

                  @crunchip

                  sudo apt install nodejs
                  

                  Ich würde aber schauen, dass die 10.20.1 angeboten wird. Die 10.20.0 hat einen Fehler.
                  Bluetooth würde ich allerdings auch aktuell halten. Das Update kommt aus Security, das hat wohl einen Grund...

                  crunchipC Away
                  crunchipC Away
                  crunchip
                  Forum Testing Most Active
                  wrote on last edited by
                  #386

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

                  umgestiegen von Proxmox auf Unraid

                  GlasfaserG 1 Reply Last reply
                  0
                  • crunchipC crunchip

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

                    GlasfaserG Online
                    GlasfaserG Online
                    Glasfaser
                    wrote on last edited by
                    #387

                    @crunchip

                    vorher eine .. machen , zur Paketenaktualisierung

                    sudo apt update
                    

                    Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                    crunchipC 1 Reply Last reply
                    1
                    • GlasfaserG Glasfaser

                      @crunchip

                      vorher eine .. machen , zur Paketenaktualisierung

                      sudo apt update
                      
                      crunchipC Away
                      crunchipC Away
                      crunchip
                      Forum Testing Most Active
                      wrote on last edited by
                      #388

                      @Glasfaser danke, hatte ich nicht dran gedacht

                      umgestiegen von Proxmox auf Unraid

                      GlasfaserG 1 Reply Last reply
                      0
                      • crunchipC crunchip

                        @Glasfaser danke, hatte ich nicht dran gedacht

                        GlasfaserG Online
                        GlasfaserG Online
                        Glasfaser
                        wrote on last edited by Glasfaser
                        #389

                        @crunchip

                        😉

                        Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SolarGuido
                          wrote on last edited by SolarGuido
                          #390

                          vertan... falscher Beitrag

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SolarGuido
                            wrote on last edited by
                            #391

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

                            Thomas BraunT HomoranH 2 Replies Last reply
                            0
                            • S SolarGuido

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

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

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

                              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

                              S 1 Reply Last reply
                              0
                              • S SolarGuido

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

                                HomoranH Do not disturb
                                HomoranH Do not disturb
                                Homoran
                                Global Moderator Administrators
                                wrote on last edited by
                                #393

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

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

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

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

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

                                Das wird automatisch mit ugegradet

                                kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                S 1 Reply Last reply
                                0
                                • Thomas BraunT Thomas Braun

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

                                  S Offline
                                  S Offline
                                  SolarGuido
                                  wrote on last edited by SolarGuido
                                  #394

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

                                  rwendeten System ab.

                                  Orange Pi (image aus dem Forum) Also Debian

                                  Thomas BraunT 1 Reply Last reply
                                  0
                                  • S SolarGuido

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

                                    rwendeten System ab.

                                    Orange Pi (image aus dem Forum) Also Debian

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

                                    @SolarGuido Da läuft ein Linux drauf? 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

                                    HomoranH 1 Reply Last reply
                                    0
                                    • Thomas BraunT Thomas Braun

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

                                      HomoranH Do not disturb
                                      HomoranH Do not disturb
                                      Homoran
                                      Global Moderator Administrators
                                      wrote on last edited by
                                      #396

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

                                      Da läuft ein Linux drauf? Debian?

                                      Armbian

                                      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                      S 1 Reply Last reply
                                      0
                                      • HomoranH Homoran

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

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

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

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

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

                                        Das wird automatisch mit ugegradet

                                        S Offline
                                        S Offline
                                        SolarGuido
                                        wrote on last edited by
                                        #397

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

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

                                        Ok, dann vielen Dank!

                                        1 Reply Last reply
                                        0
                                        • HomoranH Homoran

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

                                          Da läuft ein Linux drauf? Debian?

                                          Armbian

                                          S Offline
                                          S Offline
                                          SolarGuido
                                          wrote on last edited by
                                          #398

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

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

                                          Da läuft ein Linux drauf? Debian?

                                          Armbian

                                          Ja , aber Debian ist glaub ich die Basis dafür , nur das Armbian eingeschränkt ist gegenüber Deban...

                                          Ich werde es probieren mache ne Ordner Sicherung vorher, da werden doch nur Änderungen in opt/iobroker gemacht oder auch andere Verzeichnisse?

                                          HomoranH 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

                                          397

                                          Online

                                          32.4k

                                          Users

                                          81.4k

                                          Topics

                                          1.3m

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

                                          • Don't have an account? Register

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