Weiter zum Inhalt
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Hell
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dunkel
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern

NEWS

  • Neuer ioBroker-Blog online: Monatsrückblick März/April 2026
    BluefoxB
    Bluefox
    8
    1
    724

  • Verwendung von KI bitte immer deutlich kennzeichnen
    HomoranH
    Homoran
    10
    1
    559

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    1.1k

Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
@1.5.3 @2.1.1
37 Beiträge 4 Kommentatoren 1.5k Aufrufe 2 Beobachtet
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • S samsungfreak

    Hallo zusammen,

    nachdem ich mein System nun endlich auf die Version 12 aktualisiert bekommen habe konnte ich mit dem Update des JS-Controllers fortfahren.

    Das Update an sich hat funktioniert und IOBroker konnte auch ohne Probleme wieder gestartet werden. Allerdings wurden beim Update sehr viele Fehler geloggt gerade im letzten Abschnitt (habe das Log gekürzt und poste hier nur einen Teil da ziemlich viele Fehler mehrfach geloggt wurden).
    Kennt jemand von euch die Fehler? Kann man diese ignorieren oder sollte man lieber ein paar Punkte prüfen? Bisher läuft soweit alles ohne Probleme daher die Frage:)

    root@Broker:/opt/iobroker# iobroker upgrade self
    Update js-controller from @1.5.3 to @2.2.9
    NPM version: 6.14.4
    npm install iobroker.js-controller@2.2.9 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
    In file included from ../node_modules/nan/nan.h:82:0,
                     from ../src/bufferutil.cc:16:
    ../node_modules/nan/nan_new.h:24:39: error: ‘Handle’ is not a member of ‘v8’
     template <typename T> v8::Local<T> To(v8::Handle<v8::Integer> i);
                                           ^~
    ../node_modules/nan/nan_new.h:24:61: error: expected primary-expression before ‘>’ token
     template <typename T> v8::Local<T> To(v8::Handle<v8::Integer> i);
                                                                 ^
    ../node_modules/nan/nan_new.h:24:63: error: ‘i’ was not declared in this scope
     template <typename T> v8::Local<T> To(v8::Handle<v8::Integer> i);
                                                                   ^
    ../node_modules/nan/nan_new.h:29:21: error: ‘NanIntern::To<v8::Integer>’ declared as an ‘inline’ variable
     To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }
                         ^~~~~~
    ../node_modules/nan/nan_new.h:29:17: error: ‘Handle’ is not a member of ‘v8’
     To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }
                     ^~
    ../node_modules/nan/nan_new.h:29:39: error: expected primary-expression before ‘>’ token
     To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }
                                           ^
    ../node_modules/nan/nan_new.h:29:41: error: ‘i’ was not declared in this scope
     To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }
                                             ^
    ../node_modules/nan/nan_new.h:29:44: error: expected ‘;’ before ‘{’ token
     To<v8::Integer>(v8::Handle<v8::Integer> i) { return i->ToInteger(); }
                                                ^
    ../node_modules/nan/nan_new.h:34:19: error: ‘NanIntern::To<v8::Int32>’ declared as an ‘inline’ variable
     To<v8::Int32>(v8::Handle<v8::Integer> i)   { return i->ToInt32(); }
                       ^~~~~~
    ../node_modules/nan/nan_new.h:34:15: error: ‘Handle’ is not a member of ‘v8’
     To<v8::Int32>(v8::Handle<v8::Integer> i)   { return i->ToInt32(); }
                   ^~
    ../node_modules/nan/nan_new.h:34:37: error: expected primary-expression before ‘>’ token
     To<v8::Int32>(v8::Handle<v8::Integer> i)   { return i->ToInt32(); }                                    
    
    /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
       declarator __attribute__((deprecated(message)))
       ^~~~~~~~~~
    In file included from ../node_modules/nan/nan_new.h:189:0,
                     from ../node_modules/nan/nan.h:82,
                     from ../src/bufferutil.cc:16:
    ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(const string&)’:
    ../node_modules/nan/nan_implementation_12_inl.h:200:78: warning: ‘static v8::Local<v8::String> v8::String::NewFromUtf8(v8::Isolate*, const char*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
           value.data(), v8::String::kNormalString, static_cast<int>(value.size()));
                                                                                  ^
    In file included from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                     from /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                     from ../src/bufferutil.cc:7:
    /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:3032:21: note: declared here
           Local<String> NewFromUtf8(Isolate* isolate, const char* data,
                         ^
    /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
       declarator __attribute__((deprecated(message)))
       ^~~~~~~~~~
    In file included from ../node_modules/nan/nan_new.h:189:0,
                     from ../node_modules/nan/nan.h:82,
                     from ../src/bufferutil.cc:16:
    ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(const uint8_t*, int)’:
    ../node_modules/nan/nan_implementation_12_inl.h:206:42: error: no matching function for call to ‘v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*&, v8::String::NewStringType, int&)’
             v8::String::kNormalString, length);
                                              ^
    In file included from ../src/bufferutil.cc:7:0:
    /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:3044:51: note: candidate: static v8::MaybeLocal<v8::String> v8::String::NewFromOneByte(v8::Isolate*, const uint8_t*, v8::NewStringType, int)
       static V8_WARN_UNUSED_RESULT MaybeLocal<String> NewFromOneByte(
                                                       ^~~~~~~~~~~~~~
    /home/iobroker/.cache/node-gyp/12.16.3/include/node/v8.h:3044:51: note:   no known conversion for argument 3 from ‘v8::String::NewStringType’ to ‘v8::NewStringType’
    In file included from ../node_modules/nan/nan_new.h:189:0,
                     from ../node_modules/nan/nan.h:82,
                     from ../src/bufferutil.cc:16:
    ../node_modules/nan/nan_implementation_12_inl.h: In static member function ‘static NanIntern::FactoryBase<v8::String>::return_t NanIntern::Factory<v8::String>::New(const uint16_t*, int)’:
    ../node_modules/nan/nan_implementation_12_inl.h:212:42: warning: ‘static v8::Local<v8::String> v8::String::NewFromTwoByte(v8::Isolate*, const uint16_t*, v8::String::NewStringType, int)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             v8::String::kNormalString, length);
                                                  ^
    ../node_modules/nan/nan.h:512:19: note: candidate: template<class T> void NanAssignPersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&)
       NAN_INLINE void NanAssignPersistent(
                       ^~~~~~~~~~~~~~~~~~~
    ../node_modules/nan/nan.h:512:19: note:   template argument deduction/substitution failed:
    ../node_modules/nan/nan.h:1598:46: note:   ‘v8::Local<v8::Object>’ is not derived from ‘const v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >’
         NanAssignPersistent(persistentHandle, obj);
                                                  ^
    ../node_modules/nan/nan.h: In member function ‘void NanAsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Object>&)’:
    ../node_modules/nan/nan.h:1625:42: error: missing template arguments before ‘(’ token
         v8::Local<v8::Object> handle = NanNew(persistentHandle);
                                              ^
    ../node_modules/nan/nan.h:1626:39: error: no match for call to ‘(v8::Local<v8::String>) (const char*&)’
         handle->Set(NanNew<v8::String>(key), obj);
                                           ^
    ../node_modules/nan/nan.h: In member function ‘v8::Local<v8::Object> NanAsyncWorker::GetFromPersistent(const char*) const’:
    ../node_modules/nan/nan.h:1631:42: error: missing template arguments before ‘(’ token
         v8::Local<v8::Object> handle = NanNew(persistentHandle);
                                              ^
    ../node_modules/nan/nan.h:398:58: error: missing template arguments before ‘(’ token
     # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                                                              ^
    ../node_modules/nan/nan.h:1632:12: note: in expansion of macro ‘NanEscapeScope’
         return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
                ^~~~~~~~~~~~~~
    ../node_modules/nan/nan.h:1632:45: error: missing template arguments before ‘(’ token
         return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
                                                 ^
    ../node_modules/nan/nan.h:398:59: note: in definition of macro ‘NanEscapeScope’
     # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                                                               ^~~
    ../node_modules/nan/nan.h:1632:65: error: expected primary-expression before ‘>’ token
         return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
                                                                     ^
    ../node_modules/nan/nan.h:398:59: note: in definition of macro ‘NanEscapeScope’
     # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                                                               ^~~
    ../node_modules/nan/nan.h:1632:67: error: expected primary-expression before ‘)’ token
         return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
                                                                       ^
    ../node_modules/nan/nan.h:398:59: note: in definition of macro ‘NanEscapeScope’
     # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                                                               ^~~
    ../node_modules/nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleOKCallback()’:
    ../node_modules/nan/nan.h:1648:15: error: ‘class NanCallback’ has no member named ‘Call’
         callback->Call(0, NULL);
                   ^~~~
    ../node_modules/nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleErrorCallback()’:
    ../node_modules/nan/nan.h:1655:63: error: no match for call to ‘(v8::Local<v8::String>) (const char*)’
             v8::Exception::Error(NanNew<v8::String>(ErrorMessage()))
                                                                   ^
    ../node_modules/nan/nan.h:1657:15: error: ‘class NanCallback’ has no member named ‘Call’
         callback->Call(1, argv);
                   ^~~~
    ../node_modules/nan/nan.h: At global scope:
    ../node_modules/nan/nan.h:1957:5: error: ‘Handle’ is not a member of ‘v8’
         v8::Handle<v8::Value> val
         ^~
    ../node_modules/nan/nan.h:1957:25: error: expected primary-expression before ‘>’ token
         v8::Handle<v8::Value> val
                             ^
    ../node_modules/nan/nan.h:1957:27: error: ‘val’ was not declared in this scope
         v8::Handle<v8::Value> val
                               ^~~
    ../node_modules/nan/nan.h:1958:5: error: expected primary-expression before ‘const’
       , const char** data
         ^~~~~
    ../node_modules/nan/nan.h:1959:11: error: expected primary-expression before ‘*’ token
       , size_t* len
               ^
    ../node_modules/nan/nan.h:1959:13: error: ‘len’ was not declared in this scope
       , size_t* len
                 ^~~
    ../node_modules/nan/nan.h:1960:1: error: expression list treated as compound expression in initializer [-fpermissive]
     ) {
     ^
    ../node_modules/nan/nan.h:1956:13: warning: ‘_NanGetExternalParts’ defined but not used [-Wunused-variable]
     static bool _NanGetExternalParts(
                 ^~~~~~~~~~~~~~~~~~~~
    make: *** [Release/obj.target/validation/src/validation.o] Fehler 1
    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-12-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/utf-8-validate
    gyp ERR! node -v v12.16.3
    gyp ERR! node-gyp -v v5.1.0
    gyp ERR! not ok 
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate):
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
    
    Host "Broker" (linux) updated
    Execute: chmod -R 777 /opt/iobroker
    Chmod finished. Restart controller
    Starting node restart.js
    root@Broker:/opt/iobroker# 
    
    Thomas BraunT Online
    Thomas BraunT Online
    Thomas Braun
    Most Active
    schrieb am zuletzt editiert von Thomas Braun
    #12

    @samsungfreak Du bist root...
    Den iobroker fixer ausführen. Und dann als user nochmal versuchen.

    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 Antwort Letzte Antwort
    0
    • Thomas BraunT Thomas Braun

      @samsungfreak Du bist root...
      Den iobroker fixer ausführen. Und dann als user nochmal versuchen.

      S Offline
      S Offline
      samsungfreak
      schrieb am zuletzt editiert von samsungfreak
      #13

      @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

      @samsungfreak Du bist root...
      Den iobroker fixer ausführen. Und dann als user nochmal versuchen.

      Du hast Recht mit dem Nicht Root muss ich mich noch dran gewöhnen.
      Der Fixer lief durch ohne Probleme. Allerdings kam beim Update der bzw. die gleichen Fehler. Mir ist der hier in Auge gefallen:

      make: *** [Release/obj.target/validation/src/validation.o] Fehler 1
      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-12-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/utf-8-validate
      gyp ERR! node -v v12.16.3
      gyp ERR! node-gyp -v v5.1.0
      gyp ERR! not ok
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate):
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
      
      Host "Broker" (linux) updated
      Execute: chmod -R 777 /opt/iobroker
      Chmod finished. Restart controller
      Starting node restart.js
      root@Broker:/opt/iobroker# 
      
      

      Da IOBroker sauber nach dem Update läuft bin ich mir nicht sicher ob wirklich ein Problem vorliegt oder nicht nach dem Update. Kann man das irgendwie prüfen?

      Thomas BraunT 1 Antwort Letzte Antwort
      0
      • S samsungfreak

        @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

        @samsungfreak Du bist root...
        Den iobroker fixer ausführen. Und dann als user nochmal versuchen.

        Du hast Recht mit dem Nicht Root muss ich mich noch dran gewöhnen.
        Der Fixer lief durch ohne Probleme. Allerdings kam beim Update der bzw. die gleichen Fehler. Mir ist der hier in Auge gefallen:

        make: *** [Release/obj.target/validation/src/validation.o] Fehler 1
        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-12-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/utf-8-validate
        gyp ERR! node -v v12.16.3
        gyp ERR! node-gyp -v v5.1.0
        gyp ERR! not ok
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
        npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
        npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate):
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
        npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
        
        Host "Broker" (linux) updated
        Execute: chmod -R 777 /opt/iobroker
        Chmod finished. Restart controller
        Starting node restart.js
        root@Broker:/opt/iobroker# 
        
        

        Da IOBroker sauber nach dem Update läuft bin ich mir nicht sicher ob wirklich ein Problem vorliegt oder nicht nach dem Update. Kann man das irgendwie prüfen?

        Thomas BraunT Online
        Thomas BraunT Online
        Thomas Braun
        Most Active
        schrieb am zuletzt editiert von Thomas Braun
        #14

        @samsungfreak Du bist ja immer noch als root unterwegs! Du verfummelst das Rechtegefüge damit!

        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 Antwort Letzte Antwort
        0
        • Thomas BraunT Thomas Braun

          @samsungfreak Du bist ja immer noch als root unterwegs! Du verfummelst das Rechtegefüge damit!

          S Offline
          S Offline
          samsungfreak
          schrieb am zuletzt editiert von
          #15

          @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

          @samsungfreak Du bist ja immer noch als root unterwegs! Du verfummelst das Rechtegefüge damit!

          Sorry, nein ich war als User unterwegs und habe die Logs danach nur zusammenkopiert da die Ausgabe 1:1 gleich war.

          Thomas BraunT 1 Antwort Letzte Antwort
          0
          • S samsungfreak

            @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

            @samsungfreak Du bist ja immer noch als root unterwegs! Du verfummelst das Rechtegefüge damit!

            Sorry, nein ich war als User unterwegs und habe die Logs danach nur zusammenkopiert da die Ausgabe 1:1 gleich war.

            Thomas BraunT Online
            Thomas BraunT Online
            Thomas Braun
            Most Active
            schrieb am zuletzt editiert von
            #16

            @samsungfreak

            Host "Broker" (linux) updated
            Execute: chmod -R 777 /opt/iobroker
            Chmod finished. Restart controller
            Starting node restart.js
            root@Broker:/opt/iobroker# 
            

            Das ist ein root Login.

            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 Antwort Letzte Antwort
            0
            • Thomas BraunT Thomas Braun

              @samsungfreak

              Host "Broker" (linux) updated
              Execute: chmod -R 777 /opt/iobroker
              Chmod finished. Restart controller
              Starting node restart.js
              root@Broker:/opt/iobroker# 
              

              Das ist ein root Login.

              S Offline
              S Offline
              samsungfreak
              schrieb am zuletzt editiert von
              #17

              @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

              @samsungfreak

              Host "Broker" (linux) updated
              Execute: chmod -R 777 /opt/iobroker
              Chmod finished. Restart controller
              Starting node restart.js
              root@Broker:/opt/iobroker# 
              

              Das ist ein root Login.

              Wegen der Ausgabe oder weil dort "root@Broker" steht? Wie gesagt ich hatte die Logs zusammenkopiert gehabt und der letzte Teil vom Log kam von der Root Ausgabe.

              Thomas BraunT 1 Antwort Letzte Antwort
              0
              • S samsungfreak

                @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                @samsungfreak

                Host "Broker" (linux) updated
                Execute: chmod -R 777 /opt/iobroker
                Chmod finished. Restart controller
                Starting node restart.js
                root@Broker:/opt/iobroker# 
                

                Das ist ein root Login.

                Wegen der Ausgabe oder weil dort "root@Broker" steht? Wie gesagt ich hatte die Logs zusammenkopiert gehabt und der letzte Teil vom Log kam von der Root Ausgabe.

                Thomas BraunT Online
                Thomas BraunT Online
                Thomas Braun
                Most Active
                schrieb am zuletzt editiert von Thomas Braun
                #18

                @samsungfreak said in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                root@Broker:/opt/iobroker#

                Wegen root@Broker und dem # am Ende der Zeile.
                root-shells schließen mit # ab, usershells mit $.
                Siehe in meinem System:

                pi@raspberrypi:~ $ root_werden
                root@raspberrypi:~# exit
                Abgemeldet
                pi@raspberrypi:~ $
                

                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 Antwort Letzte Antwort
                0
                • S Offline
                  S Offline
                  samsungfreak
                  schrieb am zuletzt editiert von samsungfreak
                  #19

                  Hallo,

                  auch mit einem nicht Root User und vorherigen durchlauf des IOBroker Fixers werden jede Menge Fehler geworfen.
                  Nach dem Update funktioniert alles ohne Probleme..also der IOBroker startet ohne alle Adapter sind grün. Die folgenden Fehlermeldungen sind nur ein Teil (alles was am Ende ausgegeben wurde) des Logs.

                  Kann ich die Fehler ignorieren oder sollte ich diese weiter untersuchen? Ich habe erstmal meinen Snapshot von vor dem Update wiederhergestellt:)

                  ../node_modules/nan/nan.h:1959:13: error: ‘len’ was not declared in this scope
                     , size_t* len
                               ^~~
                  ../node_modules/nan/nan.h:1960:1: error: expression list treated as compound expression in initializer [-fpermissive]
                   ) {
                   ^
                  ../node_modules/nan/nan.h:1956:13: warning: ‘_NanGetExternalParts’ defined but not used [-Wunused-variable]
                   static bool _NanGetExternalParts(
                               ^~~~~~~~~~~~~~~~~~~~
                  make: *** [Release/obj.target/validation/src/validation.o] Fehler 1
                  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-12-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/utf-8-validate
                  gyp ERR! node -v v12.16.3
                  gyp ERR! node-gyp -v v5.1.0
                  gyp ERR! not ok
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                  npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate):
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                  
                  Host "Broker" (linux) updated
                  Execute: chmod -R 777 /opt/iobroker
                  Chmod finished. Restart controller
                  Starting node restart.js
                  
                  
                  Thomas BraunT 1 Antwort Letzte Antwort
                  0
                  • S samsungfreak

                    Hallo,

                    auch mit einem nicht Root User und vorherigen durchlauf des IOBroker Fixers werden jede Menge Fehler geworfen.
                    Nach dem Update funktioniert alles ohne Probleme..also der IOBroker startet ohne alle Adapter sind grün. Die folgenden Fehlermeldungen sind nur ein Teil (alles was am Ende ausgegeben wurde) des Logs.

                    Kann ich die Fehler ignorieren oder sollte ich diese weiter untersuchen? Ich habe erstmal meinen Snapshot von vor dem Update wiederhergestellt:)

                    ../node_modules/nan/nan.h:1959:13: error: ‘len’ was not declared in this scope
                       , size_t* len
                                 ^~~
                    ../node_modules/nan/nan.h:1960:1: error: expression list treated as compound expression in initializer [-fpermissive]
                     ) {
                     ^
                    ../node_modules/nan/nan.h:1956:13: warning: ‘_NanGetExternalParts’ defined but not used [-Wunused-variable]
                     static bool _NanGetExternalParts(
                                 ^~~~~~~~~~~~~~~~~~~~
                    make: *** [Release/obj.target/validation/src/validation.o] Fehler 1
                    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-12-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/utf-8-validate
                    gyp ERR! node -v v12.16.3
                    gyp ERR! node-gyp -v v5.1.0
                    gyp ERR! not ok
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
                    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                    npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 (node_modules/bufferutil):
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.1.0 install: `node-gyp rebuild`
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 (node_modules/utf-8-validate):
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.1.0 install: `node-gyp rebuild`
                    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
                    
                    Host "Broker" (linux) updated
                    Execute: chmod -R 777 /opt/iobroker
                    Chmod finished. Restart controller
                    Starting node restart.js
                    
                    
                    Thomas BraunT Online
                    Thomas BraunT Online
                    Thomas Braun
                    Most Active
                    schrieb am zuletzt editiert von
                    #20

                    @samsungfreak Da fehlt der Anfang. Inkl. der Befehlszeile.

                    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 Antwort Letzte Antwort
                    0
                    • Thomas BraunT Thomas Braun

                      @samsungfreak Da fehlt der Anfang. Inkl. der Befehlszeile.

                      S Offline
                      S Offline
                      samsungfreak
                      schrieb am zuletzt editiert von samsungfreak
                      #21

                      @Thomas-Braun Ich habe mal das ganze Updatelog hochgeladen. Kannst du daraus irgendetwas erkennen?

                      UpdateLog.txt

                      Thomas BraunT 1 Antwort Letzte Antwort
                      0
                      • S samsungfreak

                        @Thomas-Braun Ich habe mal das ganze Updatelog hochgeladen. Kannst du daraus irgendetwas erkennen?

                        UpdateLog.txt

                        Thomas BraunT Online
                        Thomas BraunT Online
                        Thomas Braun
                        Most Active
                        schrieb am zuletzt editiert von
                        #22

                        @samsungfreak In /opt/iobroker

                        npm rebuild
                        

                        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 Antwort Letzte Antwort
                        0
                        • Thomas BraunT Thomas Braun

                          @samsungfreak In /opt/iobroker

                          npm rebuild
                          
                          S Offline
                          S Offline
                          samsungfreak
                          schrieb am zuletzt editiert von
                          #23

                          @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                          @samsungfreak In /opt/iobroker

                          npm rebuild
                          

                          Leider läuft der Prozess ebenfalls in Fehler -.-

                          
                          iobrokermaint@PA-Broker:/opt/iobroker$ npm rebuild
                          
                          > nodemailer@6.4.6 postinstall /opt/iobroker/node_modules/iobroker.email/node_modules/nodemailer
                          > node -e "try{require('./postinstall')}catch(e){}"
                          
                          === Nodemailer 6.4.6 ===
                          
                          Thank you for using Nodemailer for your email sending needs! While Nodemailer
                          itself is mostly meant to be a SMTP client there are other related projects in
                          the Nodemailer project as well.
                          
                          For example:
                          > IMAP API (  https://imapapi.com  ) is a server application to easily access
                          IMAP accounts via REST API
                          > NodemailerApp (  https://nodemailer.com/app/  ) is a cross platform GUI app to
                          debug emails
                          
                          
                          > iobroker.javascript@4.3.4 postinstall /opt/iobroker/node_modules/iobroker.javascript
                          > node ./install/installTypings.js
                          
                          Installing NodeJS typings...
                          latest @types: 14, installed node: 12
                          
                          > iobroker.vis@1.2.4 install /opt/iobroker/node_modules/iobroker.vis
                          > node main.js --install
                          
                          
                          > ursa-optional@0.9.8 install /opt/iobroker/node_modules/ursa-optional
                          > node rebuild.js
                          
                          ursaNative bindings compilation fail. This is not an issue. Modules that depend on it will use fallbacks.
                          
                          > diskusage@0.2.4 install /opt/iobroker/node_modules/diskusage
                          > node-gyp rebuild
                          
                          make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
                            CXX(target) Release/obj.target/diskusage/src/main.o
                          In file included from ../../nan/nan_converters.h:67:0,
                                           from ../../nan/nan.h:221,
                                           from ../src/main.cpp:3:
                          ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
                          ../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
                                 val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                                             ^
                          ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
                           X(Boolean)
                           ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2664:59: note: declared here
                                           V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
                                                                                     ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from ../../nan/nan_converters.h:67:0,
                                           from ../../nan/nan.h:221,
                                           from ../src/main.cpp:3:
                          ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
                          ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
                             return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                                                   ^
                          ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
                           X(bool, Boolean)
                           ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: declared here
                                           V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                                             ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from ../../nan/nan_new.h:189:0,
                                           from ../../nan/nan.h:222,
                                           from ../src/main.cpp:3:
                          ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
                          ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                                                     , obj));
                                                          ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
                             static MaybeLocal<Function> New(
                                                         ^~~
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
                          In file included from ../../nan/nan_new.h:189:0,
                                           from ../../nan/nan.h:222,
                                           from ../src/main.cpp:3:
                          ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
                          ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
                             return v8::StringObject::New(value).As<v8::StringObject>();
                                                               ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
                             static Local<Value> New(Isolate* isolate, Local<String> value);
                                                 ^~~
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note:   candidate expects 2 arguments, 1 provided
                          In file included from ../../nan/nan_new.h:189:0,
                                           from ../../nan/nan.h:222,
                                           from ../src/main.cpp:3:
                          ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
                             return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                    ^
                          ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
                             return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                      ^
                          In file included from ../src/main.cpp:3:0:
                          ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
                          ../../nan/nan.h:1063:53: error: no matching function for call to ‘v8::Value::ToString()’
                                 v8::Local<v8::String> string = from->ToString();
                                                                               ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
                             V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                                                      ^~~~~~~~
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                                           Local<String> ToString(Isolate* isolate) const);
                                                         ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
                                           Local<String> ToString(Isolate* isolate) const);
                                                         ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from ../src/main.cpp:3:0:
                          ../../nan/nan.h:1073:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
                                   length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                                                    ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/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/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
                          In file included from ../src/main.cpp:3:0:
                          ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
                          ../../nan/nan.h:1847:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                               New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                                          ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                           bool Set(Local<Value> key, Local<Value> value));
                                                ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from ../src/main.cpp:3:0:
                          ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
                          ../../nan/nan.h:1853:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                               New(persistentHandle)->Set(key, value);
                                                                    ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                           bool Set(Local<Value> key, Local<Value> value));
                                                ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from ../src/main.cpp:3:0:
                          ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
                          ../../nan/nan.h:1859:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                               New(persistentHandle)->Set(index, value);
                                                                      ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3508:22: note: declared here
                                           bool Set(uint32_t index, Local<Value> value));
                                                ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from ../src/main.cpp:3:0:
                          ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
                          ../../nan/nan.h:1865:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                   New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                                       ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                             V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                             ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from ../src/main.cpp:3:0:
                          ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
                          ../../nan/nan.h:1871:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                               return scope.Escape(New(persistentHandle)->Get(key));
                                                                                 ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                             V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                             ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from ../src/main.cpp:3:0:
                          ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
                          ../../nan/nan.h:1876:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                               return scope.Escape(New(persistentHandle)->Get(index));
                                                                                   ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3557:51: note: declared here
                             V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                                             ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from /usr/include/c++/6/cassert:44:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                           from ../../nan/nan.h:54,
                                           from ../src/main.cpp:3:
                          ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
                          ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                               assert(persistent().IsNearDeath());
                                                   ^
                          In file included from ../../nan/nan.h:2690:0,
                                           from ../src/main.cpp:3:
                          ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
                          ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
                               persistent().MarkIndependent();
                                                            ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:570:22: note: declared here
                                 V8_INLINE void MarkIndependent());
                                                ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          In file included from /usr/include/c++/6/cassert:44:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                           from ../../nan/nan.h:54,
                                           from ../src/main.cpp:3:
                          ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
                          ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                               assert(wrap->handle_.IsNearDeath());
                                                    ^
                          ../src/main.cpp: In function ‘v8::Local<v8::Object> ConvertDiskUsage(const DiskUsage&)’:
                          ../src/main.cpp:9:103: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                               obj->Set(Nan::New<v8::String>("available").ToLocalChecked(), Nan::New<v8::Number>(usage.available));
                                                                                                                                 ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                           bool Set(Local<Value> key, Local<Value> value));
                                                ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          ../src/main.cpp:10:93: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                               obj->Set(Nan::New<v8::String>("free").ToLocalChecked(), Nan::New<v8::Number>(usage.free));
                                                                                                                       ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                           bool Set(Local<Value> key, Local<Value> value));
                                                ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          ../src/main.cpp:11:95: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                               obj->Set(Nan::New<v8::String>("total").ToLocalChecked(), Nan::New<v8::Number>(usage.total));
                                                                                                                         ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                           bool Set(Local<Value> key, Local<Value> value));
                                                ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                             declarator __attribute__((deprecated(message)))
                             ^~~~~~~~~~
                          ../src/main.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’:
                          ../src/main.cpp:26:71: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
                                   DiskUsage result = GetDiskUsage(*v8::String::Utf8Value(info[0]));
                                                                                                 ^
                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                           from ../../nan/nan.h:52,
                                           from ../src/main.cpp:3:
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
                               Utf8Value(Isolate* isolate, Local<v8::Value> obj);
                               ^~~~~~~~~
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
                          ../src/main.cpp: At global scope:
                          ../src/main.cpp:37:15: error: variable or field ‘Init’ declared void
                           void Init(v8::Handle<v8::Object> exports)
                                         ^~~~~~
                          ../src/main.cpp:37:11: error: ‘Handle’ is not a member of ‘v8’
                           void Init(v8::Handle<v8::Object> exports)
                                     ^~
                          ../src/main.cpp:37:32: error: expected primary-expression before ‘>’ token
                           void Init(v8::Handle<v8::Object> exports)
                                                          ^
                          ../src/main.cpp:37:34: error: ‘exports’ was not declared in this scope
                           void Init(v8::Handle<v8::Object> exports)
                                                            ^~~~~~~
                          In file included from ../../nan/nan.h:52:0,
                                           from ../src/main.cpp:3:
                          ../src/main.cpp:42:24: error: ‘Init’ was not declared in this scope
                           NODE_MODULE(diskusage, Init)
                                                  ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                 (node::addon_register_func) (regfunc),                          \
                                                              ^~~~~~~
                          ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                           NODE_MODULE(diskusage, Init)
                           ^~~~~~~~~~~
                          ../src/main.cpp:42:24: note: suggested alternative:
                           NODE_MODULE(diskusage, Init)
                                                  ^
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                 (node::addon_register_func) (regfunc),                          \
                                                              ^~~~~~~
                          ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                           NODE_MODULE(diskusage, Init)
                           ^~~~~~~~~~~
                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:225:18: note:   ‘node::Init’
                           NODE_EXTERN void Init(int* argc,
                                            ^~~~
                          In file included from ../src/main.cpp:3:0:
                          ../src/main.cpp:21:19: warning: ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
                           static NAN_METHOD(GetDiskUsage)
                                             ^
                          ../../nan/nan.h:1473:33: note: in definition of macro ‘NAN_METHOD’
                               Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
                                                           ^~~~
                          diskusage.target.mk:114: die Regel für Ziel „Release/obj.target/diskusage/src/main.o“ scheiterte
                          make: *** [Release/obj.target/diskusage/src/main.o] Fehler 1
                          make: Verzeichnis „/opt/iobroker/node_modules/diskusage/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-12-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/diskusage
                          gyp ERR! node -v v12.16.3
                          gyp ERR! node-gyp -v v5.1.0
                          gyp ERR! not ok
                          npm ERR! code ELIFECYCLE
                          npm ERR! errno 1
                          npm ERR! diskusage@0.2.4 install: `node-gyp rebuild`
                          npm ERR! Exit status 1
                          npm ERR!
                          npm ERR! Failed at the diskusage@0.2.4 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/iobrokermaint/.npm/_logs/2020-05-17T15_02_47_833Z-debug.log
                          
                          Thomas BraunT 1 Antwort Letzte Antwort
                          0
                          • S samsungfreak

                            @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                            @samsungfreak In /opt/iobroker

                            npm rebuild
                            

                            Leider läuft der Prozess ebenfalls in Fehler -.-

                            
                            iobrokermaint@PA-Broker:/opt/iobroker$ npm rebuild
                            
                            > nodemailer@6.4.6 postinstall /opt/iobroker/node_modules/iobroker.email/node_modules/nodemailer
                            > node -e "try{require('./postinstall')}catch(e){}"
                            
                            === Nodemailer 6.4.6 ===
                            
                            Thank you for using Nodemailer for your email sending needs! While Nodemailer
                            itself is mostly meant to be a SMTP client there are other related projects in
                            the Nodemailer project as well.
                            
                            For example:
                            > IMAP API (  https://imapapi.com  ) is a server application to easily access
                            IMAP accounts via REST API
                            > NodemailerApp (  https://nodemailer.com/app/  ) is a cross platform GUI app to
                            debug emails
                            
                            
                            > iobroker.javascript@4.3.4 postinstall /opt/iobroker/node_modules/iobroker.javascript
                            > node ./install/installTypings.js
                            
                            Installing NodeJS typings...
                            latest @types: 14, installed node: 12
                            
                            > iobroker.vis@1.2.4 install /opt/iobroker/node_modules/iobroker.vis
                            > node main.js --install
                            
                            
                            > ursa-optional@0.9.8 install /opt/iobroker/node_modules/ursa-optional
                            > node rebuild.js
                            
                            ursaNative bindings compilation fail. This is not an issue. Modules that depend on it will use fallbacks.
                            
                            > diskusage@0.2.4 install /opt/iobroker/node_modules/diskusage
                            > node-gyp rebuild
                            
                            make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
                              CXX(target) Release/obj.target/diskusage/src/main.o
                            In file included from ../../nan/nan_converters.h:67:0,
                                             from ../../nan/nan.h:221,
                                             from ../src/main.cpp:3:
                            ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
                            ../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
                                   val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                                               ^
                            ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
                             X(Boolean)
                             ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2664:59: note: declared here
                                             V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
                                                                                       ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from ../../nan/nan_converters.h:67:0,
                                             from ../../nan/nan.h:221,
                                             from ../src/main.cpp:3:
                            ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
                            ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
                               return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                                                     ^
                            ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
                             X(bool, Boolean)
                             ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: declared here
                                             V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                                               ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from ../../nan/nan_new.h:189:0,
                                             from ../../nan/nan.h:222,
                                             from ../src/main.cpp:3:
                            ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
                            ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                                                       , obj));
                                                            ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
                               static MaybeLocal<Function> New(
                                                           ^~~
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
                            In file included from ../../nan/nan_new.h:189:0,
                                             from ../../nan/nan.h:222,
                                             from ../src/main.cpp:3:
                            ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
                            ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
                               return v8::StringObject::New(value).As<v8::StringObject>();
                                                                 ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
                               static Local<Value> New(Isolate* isolate, Local<String> value);
                                                   ^~~
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note:   candidate expects 2 arguments, 1 provided
                            In file included from ../../nan/nan_new.h:189:0,
                                             from ../../nan/nan.h:222,
                                             from ../src/main.cpp:3:
                            ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
                               return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                      ^
                            ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
                               return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                        ^
                            In file included from ../src/main.cpp:3:0:
                            ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
                            ../../nan/nan.h:1063:53: error: no matching function for call to ‘v8::Value::ToString()’
                                   v8::Local<v8::String> string = from->ToString();
                                                                                 ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
                               V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                                                        ^~~~~~~~
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                                             Local<String> ToString(Isolate* isolate) const);
                                                           ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
                                             Local<String> ToString(Isolate* isolate) const);
                                                           ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from ../src/main.cpp:3:0:
                            ../../nan/nan.h:1073:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
                                     length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                                                      ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/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/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
                            In file included from ../src/main.cpp:3:0:
                            ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
                            ../../nan/nan.h:1847:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                 New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                                            ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                             bool Set(Local<Value> key, Local<Value> value));
                                                  ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from ../src/main.cpp:3:0:
                            ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
                            ../../nan/nan.h:1853:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                 New(persistentHandle)->Set(key, value);
                                                                      ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                             bool Set(Local<Value> key, Local<Value> value));
                                                  ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from ../src/main.cpp:3:0:
                            ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
                            ../../nan/nan.h:1859:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                 New(persistentHandle)->Set(index, value);
                                                                        ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3508:22: note: declared here
                                             bool Set(uint32_t index, Local<Value> value));
                                                  ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from ../src/main.cpp:3:0:
                            ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
                            ../../nan/nan.h:1865:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                     New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                                         ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                               V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                               ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from ../src/main.cpp:3:0:
                            ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
                            ../../nan/nan.h:1871:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                 return scope.Escape(New(persistentHandle)->Get(key));
                                                                                   ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                               V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                               ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from ../src/main.cpp:3:0:
                            ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
                            ../../nan/nan.h:1876:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                 return scope.Escape(New(persistentHandle)->Get(index));
                                                                                     ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3557:51: note: declared here
                               V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                                               ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from /usr/include/c++/6/cassert:44:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                             from ../../nan/nan.h:54,
                                             from ../src/main.cpp:3:
                            ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
                            ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                                 assert(persistent().IsNearDeath());
                                                     ^
                            In file included from ../../nan/nan.h:2690:0,
                                             from ../src/main.cpp:3:
                            ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
                            ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
                                 persistent().MarkIndependent();
                                                              ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:570:22: note: declared here
                                   V8_INLINE void MarkIndependent());
                                                  ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            In file included from /usr/include/c++/6/cassert:44:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                             from ../../nan/nan.h:54,
                                             from ../src/main.cpp:3:
                            ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
                            ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                                 assert(wrap->handle_.IsNearDeath());
                                                      ^
                            ../src/main.cpp: In function ‘v8::Local<v8::Object> ConvertDiskUsage(const DiskUsage&)’:
                            ../src/main.cpp:9:103: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                 obj->Set(Nan::New<v8::String>("available").ToLocalChecked(), Nan::New<v8::Number>(usage.available));
                                                                                                                                   ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                             bool Set(Local<Value> key, Local<Value> value));
                                                  ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            ../src/main.cpp:10:93: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                 obj->Set(Nan::New<v8::String>("free").ToLocalChecked(), Nan::New<v8::Number>(usage.free));
                                                                                                                         ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                             bool Set(Local<Value> key, Local<Value> value));
                                                  ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            ../src/main.cpp:11:95: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                 obj->Set(Nan::New<v8::String>("total").ToLocalChecked(), Nan::New<v8::Number>(usage.total));
                                                                                                                           ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                             from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                             bool Set(Local<Value> key, Local<Value> value));
                                                  ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                               declarator __attribute__((deprecated(message)))
                               ^~~~~~~~~~
                            ../src/main.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’:
                            ../src/main.cpp:26:71: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
                                     DiskUsage result = GetDiskUsage(*v8::String::Utf8Value(info[0]));
                                                                                                   ^
                            In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                             from ../../nan/nan.h:52,
                                             from ../src/main.cpp:3:
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
                                 Utf8Value(Isolate* isolate, Local<v8::Value> obj);
                                 ^~~~~~~~~
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
                            ../src/main.cpp: At global scope:
                            ../src/main.cpp:37:15: error: variable or field ‘Init’ declared void
                             void Init(v8::Handle<v8::Object> exports)
                                           ^~~~~~
                            ../src/main.cpp:37:11: error: ‘Handle’ is not a member of ‘v8’
                             void Init(v8::Handle<v8::Object> exports)
                                       ^~
                            ../src/main.cpp:37:32: error: expected primary-expression before ‘>’ token
                             void Init(v8::Handle<v8::Object> exports)
                                                            ^
                            ../src/main.cpp:37:34: error: ‘exports’ was not declared in this scope
                             void Init(v8::Handle<v8::Object> exports)
                                                              ^~~~~~~
                            In file included from ../../nan/nan.h:52:0,
                                             from ../src/main.cpp:3:
                            ../src/main.cpp:42:24: error: ‘Init’ was not declared in this scope
                             NODE_MODULE(diskusage, Init)
                                                    ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                   (node::addon_register_func) (regfunc),                          \
                                                                ^~~~~~~
                            ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                             NODE_MODULE(diskusage, Init)
                             ^~~~~~~~~~~
                            ../src/main.cpp:42:24: note: suggested alternative:
                             NODE_MODULE(diskusage, Init)
                                                    ^
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                   (node::addon_register_func) (regfunc),                          \
                                                                ^~~~~~~
                            ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                             NODE_MODULE(diskusage, Init)
                             ^~~~~~~~~~~
                            /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:225:18: note:   ‘node::Init’
                             NODE_EXTERN void Init(int* argc,
                                              ^~~~
                            In file included from ../src/main.cpp:3:0:
                            ../src/main.cpp:21:19: warning: ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
                             static NAN_METHOD(GetDiskUsage)
                                               ^
                            ../../nan/nan.h:1473:33: note: in definition of macro ‘NAN_METHOD’
                                 Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
                                                             ^~~~
                            diskusage.target.mk:114: die Regel für Ziel „Release/obj.target/diskusage/src/main.o“ scheiterte
                            make: *** [Release/obj.target/diskusage/src/main.o] Fehler 1
                            make: Verzeichnis „/opt/iobroker/node_modules/diskusage/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-12-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/diskusage
                            gyp ERR! node -v v12.16.3
                            gyp ERR! node-gyp -v v5.1.0
                            gyp ERR! not ok
                            npm ERR! code ELIFECYCLE
                            npm ERR! errno 1
                            npm ERR! diskusage@0.2.4 install: `node-gyp rebuild`
                            npm ERR! Exit status 1
                            npm ERR!
                            npm ERR! Failed at the diskusage@0.2.4 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/iobrokermaint/.npm/_logs/2020-05-17T15_02_47_833Z-debug.log
                            
                            Thomas BraunT Online
                            Thomas BraunT Online
                            Thomas Braun
                            Most Active
                            schrieb am zuletzt editiert von
                            #24

                            @samsungfreak

                            nodejs -v && node -v && npm -v
                            

                            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 Antwort Letzte Antwort
                            0
                            • Thomas BraunT Thomas Braun

                              @samsungfreak

                              nodejs -v && node -v && npm -v
                              
                              S Offline
                              S Offline
                              samsungfreak
                              schrieb am zuletzt editiert von
                              #25

                              @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                              nodejs -v && node -v && npm -v

                              iobrokermaint@Broker:~$ nodejs -v && node -v && npm -v
                              v12.16.3
                              v12.16.3
                              6.14.4
                              
                              
                              Thomas BraunT 1 Antwort Letzte Antwort
                              0
                              • S samsungfreak

                                @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                                nodejs -v && node -v && npm -v

                                iobrokermaint@Broker:~$ nodejs -v && node -v && npm -v
                                v12.16.3
                                v12.16.3
                                6.14.4
                                
                                
                                Thomas BraunT Online
                                Thomas BraunT Online
                                Thomas Braun
                                Most Active
                                schrieb am zuletzt editiert von
                                #26

                                @samsungfreak
                                Im Ordner /opt/iobroker

                                npm rebuild diskusage
                                

                                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 Antwort Letzte Antwort
                                0
                                • Thomas BraunT Thomas Braun

                                  @samsungfreak
                                  Im Ordner /opt/iobroker

                                  npm rebuild diskusage
                                  
                                  S Offline
                                  S Offline
                                  samsungfreak
                                  schrieb am zuletzt editiert von
                                  #27

                                  @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                                  npm rebuild diskusage

                                  Gibt leider nichts aus:

                                  iobrokermaint@Broker:~$ npm rebuild diskusage
                                  iobrokermaint@Broker:~$
                                  
                                  
                                  Thomas BraunT 1 Antwort Letzte Antwort
                                  0
                                  • S samsungfreak

                                    @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                                    npm rebuild diskusage

                                    Gibt leider nichts aus:

                                    iobrokermaint@Broker:~$ npm rebuild diskusage
                                    iobrokermaint@Broker:~$
                                    
                                    
                                    Thomas BraunT Online
                                    Thomas BraunT Online
                                    Thomas Braun
                                    Most Active
                                    schrieb am zuletzt editiert von
                                    #28

                                    @samsungfreak Du stehst nicht im angegebenen Ordner.

                                    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 Antwort Letzte Antwort
                                    0
                                    • Thomas BraunT Thomas Braun

                                      @samsungfreak Du stehst nicht im angegebenen Ordner.

                                      S Offline
                                      S Offline
                                      samsungfreak
                                      schrieb am zuletzt editiert von
                                      #29

                                      @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                                      @samsungfreak Du stehst nicht im angegebenen Ordner.

                                      Oh stimmt -.-

                                      iobrokermaint@BROKER:/opt/iobroker$ npm rebuild diskusage
                                      
                                      > diskusage@0.2.4 install /opt/iobroker/node_modules/diskusage
                                      > node-gyp rebuild
                                      
                                      make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
                                        CXX(target) Release/obj.target/diskusage/src/main.o
                                      In file included from ../../nan/nan_converters.h:67:0,
                                                       from ../../nan/nan.h:221,
                                                       from ../src/main.cpp:3:
                                      ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
                                      ../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
                                             val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                                                         ^
                                      ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
                                       X(Boolean)
                                       ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2664:59: note: declared here
                                                       V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
                                                                                                 ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from ../../nan/nan_converters.h:67:0,
                                                       from ../../nan/nan.h:221,
                                                       from ../src/main.cpp:3:
                                      ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
                                      ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
                                         return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                                                               ^
                                      ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
                                       X(bool, Boolean)
                                       ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: declared here
                                                       V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                                                         ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from ../../nan/nan_new.h:189:0,
                                                       from ../../nan/nan.h:222,
                                                       from ../src/main.cpp:3:
                                      ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
                                      ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                                                                 , obj));
                                                                      ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
                                         static MaybeLocal<Function> New(
                                                                     ^~~
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
                                      In file included from ../../nan/nan_new.h:189:0,
                                                       from ../../nan/nan.h:222,
                                                       from ../src/main.cpp:3:
                                      ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
                                      ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
                                         return v8::StringObject::New(value).As<v8::StringObject>();
                                                                           ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
                                         static Local<Value> New(Isolate* isolate, Local<String> value);
                                                             ^~~
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note:   candidate expects 2 arguments, 1 provided
                                      In file included from ../../nan/nan_new.h:189:0,
                                                       from ../../nan/nan.h:222,
                                                       from ../src/main.cpp:3:
                                      ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
                                         return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                                ^
                                      ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
                                         return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                                  ^
                                      In file included from ../src/main.cpp:3:0:
                                      ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
                                      ../../nan/nan.h:1063:53: error: no matching function for call to ‘v8::Value::ToString()’
                                             v8::Local<v8::String> string = from->ToString();
                                                                                           ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
                                         V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                                                                  ^~~~~~~~
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                                                       Local<String> ToString(Isolate* isolate) const);
                                                                     ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
                                                       Local<String> ToString(Isolate* isolate) const);
                                                                     ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from ../src/main.cpp:3:0:
                                      ../../nan/nan.h:1073:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
                                               length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                                                                ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/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/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
                                      In file included from ../src/main.cpp:3:0:
                                      ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
                                      ../../nan/nan.h:1847:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                           New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                                                      ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                       bool Set(Local<Value> key, Local<Value> value));
                                                            ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from ../src/main.cpp:3:0:
                                      ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
                                      ../../nan/nan.h:1853:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                           New(persistentHandle)->Set(key, value);
                                                                                ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                       bool Set(Local<Value> key, Local<Value> value));
                                                            ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from ../src/main.cpp:3:0:
                                      ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
                                      ../../nan/nan.h:1859:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                           New(persistentHandle)->Set(index, value);
                                                                                  ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3508:22: note: declared here
                                                       bool Set(uint32_t index, Local<Value> value));
                                                            ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from ../src/main.cpp:3:0:
                                      ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
                                      ../../nan/nan.h:1865:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                                                   ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                                         V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                                         ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from ../src/main.cpp:3:0:
                                      ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
                                      ../../nan/nan.h:1871:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                           return scope.Escape(New(persistentHandle)->Get(key));
                                                                                             ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                                         V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                                         ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from ../src/main.cpp:3:0:
                                      ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
                                      ../../nan/nan.h:1876:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                           return scope.Escape(New(persistentHandle)->Get(index));
                                                                                               ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3557:51: note: declared here
                                         V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                                                         ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from /usr/include/c++/6/cassert:44:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                                       from ../../nan/nan.h:54,
                                                       from ../src/main.cpp:3:
                                      ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
                                      ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                                           assert(persistent().IsNearDeath());
                                                               ^
                                      In file included from ../../nan/nan.h:2690:0,
                                                       from ../src/main.cpp:3:
                                      ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
                                      ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
                                           persistent().MarkIndependent();
                                                                        ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:570:22: note: declared here
                                             V8_INLINE void MarkIndependent());
                                                            ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      In file included from /usr/include/c++/6/cassert:44:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                                       from ../../nan/nan.h:54,
                                                       from ../src/main.cpp:3:
                                      ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
                                      ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                                           assert(wrap->handle_.IsNearDeath());
                                                                ^
                                      ../src/main.cpp: In function ‘v8::Local<v8::Object> ConvertDiskUsage(const DiskUsage&)’:
                                      ../src/main.cpp:9:103: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                           obj->Set(Nan::New<v8::String>("available").ToLocalChecked(), Nan::New<v8::Number>(usage.available));
                                                                                                                                             ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                       bool Set(Local<Value> key, Local<Value> value));
                                                            ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      ../src/main.cpp:10:93: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                           obj->Set(Nan::New<v8::String>("free").ToLocalChecked(), Nan::New<v8::Number>(usage.free));
                                                                                                                                   ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                       bool Set(Local<Value> key, Local<Value> value));
                                                            ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      ../src/main.cpp:11:95: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                           obj->Set(Nan::New<v8::String>("total").ToLocalChecked(), Nan::New<v8::Number>(usage.total));
                                                                                                                                     ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                       from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                       bool Set(Local<Value> key, Local<Value> value));
                                                            ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                         declarator __attribute__((deprecated(message)))
                                         ^~~~~~~~~~
                                      ../src/main.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’:
                                      ../src/main.cpp:26:71: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
                                               DiskUsage result = GetDiskUsage(*v8::String::Utf8Value(info[0]));
                                                                                                             ^
                                      In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                       from ../../nan/nan.h:52,
                                                       from ../src/main.cpp:3:
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
                                           Utf8Value(Isolate* isolate, Local<v8::Value> obj);
                                           ^~~~~~~~~
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
                                      ../src/main.cpp: At global scope:
                                      ../src/main.cpp:37:15: error: variable or field ‘Init’ declared void
                                       void Init(v8::Handle<v8::Object> exports)
                                                     ^~~~~~
                                      ../src/main.cpp:37:11: error: ‘Handle’ is not a member of ‘v8’
                                       void Init(v8::Handle<v8::Object> exports)
                                                 ^~
                                      ../src/main.cpp:37:32: error: expected primary-expression before ‘>’ token
                                       void Init(v8::Handle<v8::Object> exports)
                                                                      ^
                                      ../src/main.cpp:37:34: error: ‘exports’ was not declared in this scope
                                       void Init(v8::Handle<v8::Object> exports)
                                                                        ^~~~~~~
                                      In file included from ../../nan/nan.h:52:0,
                                                       from ../src/main.cpp:3:
                                      ../src/main.cpp:42:24: error: ‘Init’ was not declared in this scope
                                       NODE_MODULE(diskusage, Init)
                                                              ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                             (node::addon_register_func) (regfunc),                          \
                                                                          ^~~~~~~
                                      ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                       NODE_MODULE(diskusage, Init)
                                       ^~~~~~~~~~~
                                      ../src/main.cpp:42:24: note: suggested alternative:
                                       NODE_MODULE(diskusage, Init)
                                                              ^
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                             (node::addon_register_func) (regfunc),                          \
                                                                          ^~~~~~~
                                      ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                       NODE_MODULE(diskusage, Init)
                                       ^~~~~~~~~~~
                                      /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:225:18: note:   ‘node::Init’
                                       NODE_EXTERN void Init(int* argc,
                                                        ^~~~
                                      In file included from ../src/main.cpp:3:0:
                                      ../src/main.cpp:21:19: warning: ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
                                       static NAN_METHOD(GetDiskUsage)
                                                         ^
                                      ../../nan/nan.h:1473:33: note: in definition of macro ‘NAN_METHOD’
                                           Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
                                                                       ^~~~
                                      diskusage.target.mk:114: die Regel für Ziel „Release/obj.target/diskusage/src/main.o“ scheiterte
                                      make: *** [Release/obj.target/diskusage/src/main.o] Fehler 1
                                      make: Verzeichnis „/opt/iobroker/node_modules/diskusage/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-12-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/diskusage
                                      gyp ERR! node -v v12.16.3
                                      gyp ERR! node-gyp -v v5.1.0
                                      gyp ERR! not ok
                                      npm ERR! code ELIFECYCLE
                                      npm ERR! errno 1
                                      npm ERR! diskusage@0.2.4 install: `node-gyp rebuild`
                                      npm ERR! Exit status 1
                                      npm ERR!
                                      npm ERR! Failed at the diskusage@0.2.4 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/iobrokermaint/.npm/_logs/2020-05-17T15_29_18_103Z-debug.log
                                      
                                      
                                      Thomas BraunT 1 Antwort Letzte Antwort
                                      0
                                      • S samsungfreak

                                        @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                                        @samsungfreak Du stehst nicht im angegebenen Ordner.

                                        Oh stimmt -.-

                                        iobrokermaint@BROKER:/opt/iobroker$ npm rebuild diskusage
                                        
                                        > diskusage@0.2.4 install /opt/iobroker/node_modules/diskusage
                                        > node-gyp rebuild
                                        
                                        make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
                                          CXX(target) Release/obj.target/diskusage/src/main.o
                                        In file included from ../../nan/nan_converters.h:67:0,
                                                         from ../../nan/nan.h:221,
                                                         from ../src/main.cpp:3:
                                        ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
                                        ../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
                                               val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                                                           ^
                                        ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
                                         X(Boolean)
                                         ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2664:59: note: declared here
                                                         V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
                                                                                                   ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from ../../nan/nan_converters.h:67:0,
                                                         from ../../nan/nan.h:221,
                                                         from ../src/main.cpp:3:
                                        ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
                                        ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
                                           return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                                                                 ^
                                        ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
                                         X(bool, Boolean)
                                         ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: declared here
                                                         V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                                                           ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from ../../nan/nan_new.h:189:0,
                                                         from ../../nan/nan.h:222,
                                                         from ../src/main.cpp:3:
                                        ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
                                        ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                                                                   , obj));
                                                                        ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
                                           static MaybeLocal<Function> New(
                                                                       ^~~
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
                                        In file included from ../../nan/nan_new.h:189:0,
                                                         from ../../nan/nan.h:222,
                                                         from ../src/main.cpp:3:
                                        ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
                                        ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
                                           return v8::StringObject::New(value).As<v8::StringObject>();
                                                                             ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
                                           static Local<Value> New(Isolate* isolate, Local<String> value);
                                                               ^~~
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note:   candidate expects 2 arguments, 1 provided
                                        In file included from ../../nan/nan_new.h:189:0,
                                                         from ../../nan/nan.h:222,
                                                         from ../src/main.cpp:3:
                                        ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
                                           return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                                  ^
                                        ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
                                           return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                                    ^
                                        In file included from ../src/main.cpp:3:0:
                                        ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
                                        ../../nan/nan.h:1063:53: error: no matching function for call to ‘v8::Value::ToString()’
                                               v8::Local<v8::String> string = from->ToString();
                                                                                             ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
                                           V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                                                                    ^~~~~~~~
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                                                         Local<String> ToString(Isolate* isolate) const);
                                                                       ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
                                                         Local<String> ToString(Isolate* isolate) const);
                                                                       ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from ../src/main.cpp:3:0:
                                        ../../nan/nan.h:1073:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
                                                 length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                                                                  ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/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/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
                                        In file included from ../src/main.cpp:3:0:
                                        ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
                                        ../../nan/nan.h:1847:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                                                        ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                         bool Set(Local<Value> key, Local<Value> value));
                                                              ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from ../src/main.cpp:3:0:
                                        ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
                                        ../../nan/nan.h:1853:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             New(persistentHandle)->Set(key, value);
                                                                                  ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                         bool Set(Local<Value> key, Local<Value> value));
                                                              ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from ../src/main.cpp:3:0:
                                        ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
                                        ../../nan/nan.h:1859:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             New(persistentHandle)->Set(index, value);
                                                                                    ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3508:22: note: declared here
                                                         bool Set(uint32_t index, Local<Value> value));
                                                              ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from ../src/main.cpp:3:0:
                                        ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
                                        ../../nan/nan.h:1865:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                                 New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                                                     ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                                           V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                                           ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from ../src/main.cpp:3:0:
                                        ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
                                        ../../nan/nan.h:1871:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             return scope.Escape(New(persistentHandle)->Get(key));
                                                                                               ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                                           V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                                           ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from ../src/main.cpp:3:0:
                                        ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
                                        ../../nan/nan.h:1876:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             return scope.Escape(New(persistentHandle)->Get(index));
                                                                                                 ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3557:51: note: declared here
                                           V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                                                           ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from /usr/include/c++/6/cassert:44:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                                         from ../../nan/nan.h:54,
                                                         from ../src/main.cpp:3:
                                        ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
                                        ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                                             assert(persistent().IsNearDeath());
                                                                 ^
                                        In file included from ../../nan/nan.h:2690:0,
                                                         from ../src/main.cpp:3:
                                        ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
                                        ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
                                             persistent().MarkIndependent();
                                                                          ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:570:22: note: declared here
                                               V8_INLINE void MarkIndependent());
                                                              ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        In file included from /usr/include/c++/6/cassert:44:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                                         from ../../nan/nan.h:54,
                                                         from ../src/main.cpp:3:
                                        ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
                                        ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                                             assert(wrap->handle_.IsNearDeath());
                                                                  ^
                                        ../src/main.cpp: In function ‘v8::Local<v8::Object> ConvertDiskUsage(const DiskUsage&)’:
                                        ../src/main.cpp:9:103: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             obj->Set(Nan::New<v8::String>("available").ToLocalChecked(), Nan::New<v8::Number>(usage.available));
                                                                                                                                               ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                         bool Set(Local<Value> key, Local<Value> value));
                                                              ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        ../src/main.cpp:10:93: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             obj->Set(Nan::New<v8::String>("free").ToLocalChecked(), Nan::New<v8::Number>(usage.free));
                                                                                                                                     ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                         bool Set(Local<Value> key, Local<Value> value));
                                                              ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        ../src/main.cpp:11:95: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                             obj->Set(Nan::New<v8::String>("total").ToLocalChecked(), Nan::New<v8::Number>(usage.total));
                                                                                                                                       ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                         from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                         bool Set(Local<Value> key, Local<Value> value));
                                                              ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                           declarator __attribute__((deprecated(message)))
                                           ^~~~~~~~~~
                                        ../src/main.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’:
                                        ../src/main.cpp:26:71: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
                                                 DiskUsage result = GetDiskUsage(*v8::String::Utf8Value(info[0]));
                                                                                                               ^
                                        In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                         from ../../nan/nan.h:52,
                                                         from ../src/main.cpp:3:
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
                                             Utf8Value(Isolate* isolate, Local<v8::Value> obj);
                                             ^~~~~~~~~
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
                                        ../src/main.cpp: At global scope:
                                        ../src/main.cpp:37:15: error: variable or field ‘Init’ declared void
                                         void Init(v8::Handle<v8::Object> exports)
                                                       ^~~~~~
                                        ../src/main.cpp:37:11: error: ‘Handle’ is not a member of ‘v8’
                                         void Init(v8::Handle<v8::Object> exports)
                                                   ^~
                                        ../src/main.cpp:37:32: error: expected primary-expression before ‘>’ token
                                         void Init(v8::Handle<v8::Object> exports)
                                                                        ^
                                        ../src/main.cpp:37:34: error: ‘exports’ was not declared in this scope
                                         void Init(v8::Handle<v8::Object> exports)
                                                                          ^~~~~~~
                                        In file included from ../../nan/nan.h:52:0,
                                                         from ../src/main.cpp:3:
                                        ../src/main.cpp:42:24: error: ‘Init’ was not declared in this scope
                                         NODE_MODULE(diskusage, Init)
                                                                ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                               (node::addon_register_func) (regfunc),                          \
                                                                            ^~~~~~~
                                        ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                         NODE_MODULE(diskusage, Init)
                                         ^~~~~~~~~~~
                                        ../src/main.cpp:42:24: note: suggested alternative:
                                         NODE_MODULE(diskusage, Init)
                                                                ^
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                               (node::addon_register_func) (regfunc),                          \
                                                                            ^~~~~~~
                                        ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                         NODE_MODULE(diskusage, Init)
                                         ^~~~~~~~~~~
                                        /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:225:18: note:   ‘node::Init’
                                         NODE_EXTERN void Init(int* argc,
                                                          ^~~~
                                        In file included from ../src/main.cpp:3:0:
                                        ../src/main.cpp:21:19: warning: ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
                                         static NAN_METHOD(GetDiskUsage)
                                                           ^
                                        ../../nan/nan.h:1473:33: note: in definition of macro ‘NAN_METHOD’
                                             Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
                                                                         ^~~~
                                        diskusage.target.mk:114: die Regel für Ziel „Release/obj.target/diskusage/src/main.o“ scheiterte
                                        make: *** [Release/obj.target/diskusage/src/main.o] Fehler 1
                                        make: Verzeichnis „/opt/iobroker/node_modules/diskusage/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-12-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/diskusage
                                        gyp ERR! node -v v12.16.3
                                        gyp ERR! node-gyp -v v5.1.0
                                        gyp ERR! not ok
                                        npm ERR! code ELIFECYCLE
                                        npm ERR! errno 1
                                        npm ERR! diskusage@0.2.4 install: `node-gyp rebuild`
                                        npm ERR! Exit status 1
                                        npm ERR!
                                        npm ERR! Failed at the diskusage@0.2.4 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/iobrokermaint/.npm/_logs/2020-05-17T15_29_18_103Z-debug.log
                                        
                                        
                                        Thomas BraunT Online
                                        Thomas BraunT Online
                                        Thomas Braun
                                        Most Active
                                        schrieb am zuletzt editiert von
                                        #30

                                        @samsungfreak

                                        npm rebuild diskusage --from-source
                                        

                                        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 Antwort Letzte Antwort
                                        0
                                        • Thomas BraunT Thomas Braun

                                          @samsungfreak

                                          npm rebuild diskusage --from-source
                                          
                                          S Offline
                                          S Offline
                                          samsungfreak
                                          schrieb am zuletzt editiert von
                                          #31

                                          @Thomas-Braun sagte in Update JS-Controller @1.5.3 auf @2.1.1 mit Fehlern:

                                          @samsungfreak

                                          npm rebuild diskusage --from-source
                                          

                                          Der Befehl hat funktioniert allerdings ebenfalls mit den Fehlern:

                                          iobrokermaint@BROKER:/opt/iobroker$ npm rebuild diskusage --from-source
                                          
                                          > diskusage@0.2.4 install /opt/iobroker/node_modules/diskusage
                                          > node-gyp rebuild
                                          
                                          make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten
                                            CXX(target) Release/obj.target/diskusage/src/main.o
                                          In file included from ../../nan/nan_converters.h:67:0,
                                                           from ../../nan/nan.h:221,
                                                           from ../src/main.cpp:3:
                                          ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
                                          ../../nan/nan_converters_43_inl.h:18:51: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
                                                 val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                                                             ^
                                          ../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
                                           X(Boolean)
                                           ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2664:59: note: declared here
                                                           V8_WARN_UNUSED_RESULT MaybeLocal<Boolean> ToBoolean(
                                                                                                     ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../../nan/nan_converters.h:67:0,
                                                           from ../../nan/nan.h:221,
                                                           from ../src/main.cpp:3:
                                          ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
                                          ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
                                             return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                                                                   ^
                                          ../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
                                           X(bool, Boolean)
                                           ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2702:51: note: declared here
                                                           V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                                                             ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../../nan/nan_new.h:189:0,
                                                           from ../../nan/nan.h:222,
                                                           from ../src/main.cpp:3:
                                          ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
                                          ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                                                                     , obj));
                                                                          ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
                                             static MaybeLocal<Function> New(
                                                                         ^~~
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:4275:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
                                          In file included from ../../nan/nan_new.h:189:0,
                                                           from ../../nan/nan.h:222,
                                                           from ../src/main.cpp:3:
                                          ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
                                          ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
                                             return v8::StringObject::New(value).As<v8::StringObject>();
                                                                               ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
                                             static Local<Value> New(Isolate* isolate, Local<String> value);
                                                                 ^~~
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:5531:23: note:   candidate expects 2 arguments, 1 provided
                                          In file included from ../../nan/nan_new.h:189:0,
                                                           from ../../nan/nan.h:222,
                                                           from ../src/main.cpp:3:
                                          ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
                                             return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                                    ^
                                          ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
                                             return v8::StringObject::New(value).As<v8::StringObject>();
                                                                                                      ^
                                          In file included from ../src/main.cpp:3:0:
                                          ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
                                          ../../nan/nan.h:1063:53: error: no matching function for call to ‘v8::Value::ToString()’
                                                 v8::Local<v8::String> string = from->ToString();
                                                                                               ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
                                             V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                                                                      ^~~~~~~~
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2668:44: note:   candidate expects 1 argument, 0 provided
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note: candidate: v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const
                                                           Local<String> ToString(Isolate* isolate) const);
                                                                         ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2684:31: note:   candidate expects 1 argument, 0 provided
                                                           Local<String> ToString(Isolate* isolate) const);
                                                                         ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../src/main.cpp:3:0:
                                          ../../nan/nan.h:1073:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
                                                   length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                                                                    ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/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/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:2878:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
                                          In file included from ../src/main.cpp:3:0:
                                          ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
                                          ../../nan/nan.h:1847:64: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                                                          ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                           bool Set(Local<Value> key, Local<Value> value));
                                                                ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../src/main.cpp:3:0:
                                          ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
                                          ../../nan/nan.h:1853:42: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               New(persistentHandle)->Set(key, value);
                                                                                    ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                           bool Set(Local<Value> key, Local<Value> value));
                                                                ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../src/main.cpp:3:0:
                                          ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
                                          ../../nan/nan.h:1859:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               New(persistentHandle)->Set(index, value);
                                                                                      ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3508:22: note: declared here
                                                           bool Set(uint32_t index, Local<Value> value));
                                                                ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../src/main.cpp:3:0:
                                          ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
                                          ../../nan/nan.h:1865:61: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                                   New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                                                                       ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                                             V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                                             ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../src/main.cpp:3:0:
                                          ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
                                          ../../nan/nan.h:1871:55: warning: ‘v8::Local<v8::Value> v8::Object::Get(v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               return scope.Escape(New(persistentHandle)->Get(key));
                                                                                                 ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3553:51: note: declared here
                                             V8_DEPRECATED("Use maybe version", Local<Value> Get(Local<Value> key));
                                                                                             ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from ../src/main.cpp:3:0:
                                          ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
                                          ../../nan/nan.h:1876:57: warning: ‘v8::Local<v8::Value> v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               return scope.Escape(New(persistentHandle)->Get(index));
                                                                                                   ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3557:51: note: declared here
                                             V8_DEPRECATED("Use maybe version", Local<Value> Get(uint32_t index));
                                                                                             ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from /usr/include/c++/6/cassert:44:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                                           from ../../nan/nan.h:54,
                                                           from ../src/main.cpp:3:
                                          ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
                                          ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                                               assert(persistent().IsNearDeath());
                                                                   ^
                                          In file included from ../../nan/nan.h:2690:0,
                                                           from ../src/main.cpp:3:
                                          ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
                                          ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase<T>::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
                                               persistent().MarkIndependent();
                                                                            ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:570:22: note: declared here
                                                 V8_INLINE void MarkIndependent());
                                                                ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          In file included from /usr/include/c++/6/cassert:44:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node_object_wrap.h:26,
                                                           from ../../nan/nan.h:54,
                                                           from ../src/main.cpp:3:
                                          ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
                                          ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
                                               assert(wrap->handle_.IsNearDeath());
                                                                    ^
                                          ../src/main.cpp: In function ‘v8::Local<v8::Object> ConvertDiskUsage(const DiskUsage&)’:
                                          ../src/main.cpp:9:103: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               obj->Set(Nan::New<v8::String>("available").ToLocalChecked(), Nan::New<v8::Number>(usage.available));
                                                                                                                                                 ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                           bool Set(Local<Value> key, Local<Value> value));
                                                                ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/main.cpp:10:93: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               obj->Set(Nan::New<v8::String>("free").ToLocalChecked(), Nan::New<v8::Number>(usage.free));
                                                                                                                                       ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                           bool Set(Local<Value> key, Local<Value> value));
                                                                ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/main.cpp:11:95: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
                                               obj->Set(Nan::New<v8::String>("total").ToLocalChecked(), Nan::New<v8::Number>(usage.total));
                                                                                                                                         ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8-internal.h:14:0,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:27,
                                                           from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3499:22: note: declared here
                                                           bool Set(Local<Value> key, Local<Value> value));
                                                                ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
                                             declarator __attribute__((deprecated(message)))
                                             ^~~~~~~~~~
                                          ../src/main.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’:
                                          ../src/main.cpp:26:71: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
                                                   DiskUsage result = GetDiskUsage(*v8::String::Utf8Value(info[0]));
                                                                                                                 ^
                                          In file included from /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:67:0,
                                                           from ../../nan/nan.h:52,
                                                           from ../src/main.cpp:3:
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
                                               Utf8Value(Isolate* isolate, Local<v8::Value> obj);
                                               ^~~~~~~~~
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/v8.h:3135:5: note:   candidate expects 2 arguments, 1 provided
                                          ../src/main.cpp: At global scope:
                                          ../src/main.cpp:37:15: error: variable or field ‘Init’ declared void
                                           void Init(v8::Handle<v8::Object> exports)
                                                         ^~~~~~
                                          ../src/main.cpp:37:11: error: ‘Handle’ is not a member of ‘v8’
                                           void Init(v8::Handle<v8::Object> exports)
                                                     ^~
                                          ../src/main.cpp:37:32: error: expected primary-expression before ‘>’ token
                                           void Init(v8::Handle<v8::Object> exports)
                                                                          ^
                                          ../src/main.cpp:37:34: error: ‘exports’ was not declared in this scope
                                           void Init(v8::Handle<v8::Object> exports)
                                                                            ^~~~~~~
                                          In file included from ../../nan/nan.h:52:0,
                                                           from ../src/main.cpp:3:
                                          ../src/main.cpp:42:24: error: ‘Init’ was not declared in this scope
                                           NODE_MODULE(diskusage, Init)
                                                                  ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                                 (node::addon_register_func) (regfunc),                          \
                                                                              ^~~~~~~
                                          ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                           NODE_MODULE(diskusage, Init)
                                           ^~~~~~~~~~~
                                          ../src/main.cpp:42:24: note: suggested alternative:
                                           NODE_MODULE(diskusage, Init)
                                                                  ^
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:608:36: note: in definition of macro ‘NODE_MODULE_X’
                                                 (node::addon_register_func) (regfunc),                          \
                                                                              ^~~~~~~
                                          ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                                           NODE_MODULE(diskusage, Init)
                                           ^~~~~~~~~~~
                                          /home/iobrokermaint/.cache/node-gyp/12.16.3/include/node/node.h:225:18: note:   ‘node::Init’
                                           NODE_EXTERN void Init(int* argc,
                                                            ^~~~
                                          In file included from ../src/main.cpp:3:0:
                                          ../src/main.cpp:21:19: warning: ‘Nan::NAN_METHOD_RETURN_TYPE GetDiskUsage(Nan::NAN_METHOD_ARGS_TYPE)’ defined but not used [-Wunused-function]
                                           static NAN_METHOD(GetDiskUsage)
                                                             ^
                                          ../../nan/nan.h:1473:33: note: in definition of macro ‘NAN_METHOD’
                                               Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
                                                                           ^~~~
                                          diskusage.target.mk:114: die Regel für Ziel „Release/obj.target/diskusage/src/main.o“ scheiterte
                                          make: *** [Release/obj.target/diskusage/src/main.o] Fehler 1
                                          make: Verzeichnis „/opt/iobroker/node_modules/diskusage/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-12-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/diskusage
                                          gyp ERR! node -v v12.16.3
                                          gyp ERR! node-gyp -v v5.1.0
                                          gyp ERR! not ok
                                          npm ERR! code ELIFECYCLE
                                          npm ERR! errno 1
                                          npm ERR! diskusage@0.2.4 install: `node-gyp rebuild`
                                          npm ERR! Exit status 1
                                          npm ERR!
                                          npm ERR! Failed at the diskusage@0.2.4 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/iobrokermaint/.npm/_logs/2020-05-17T15_54_39_055Z-debug.log
                                          
                                          
                                          Thomas BraunT 1 Antwort Letzte Antwort
                                          0

                                          Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.

                                          Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.

                                          Mit deinem Input könnte dieser Beitrag noch besser werden 💗

                                          Registrieren Anmelden
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

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

                                          563

                                          Online

                                          32.8k

                                          Benutzer

                                          82.9k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe