Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Fehler bei der Installation von ioBroker

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Fehler bei der Installation von ioBroker

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Kruech last edited by Thomas Braun

      @Kruech sagte in Fehler bei der Installation von ioBroker:

      npmjs.org

      So oft wie ich in den letzten Tagen korrupte json Files gesehen habe vermute ich, dass es irgendwo auf npmjs.org klemmt.

      [Edit:] BINGO!
      https://status.npmjs.org/

      Monitoring - We began investigating an issue with the npmjs.com website a short time ago, quickly identified the issue and we are monitoring a fix we have deployed.
      May 29, 06:10 UTC

      1 Reply Last reply Reply Quote 0
      • K
        Kruech last edited by

        Alles klar, dann vielen Dank erstmal, dann bin ich beruhigt das es nicht an mir liegt und dann hilft wohl nur Tee trinken.

        1 Reply Last reply Reply Quote 0
        • K
          Kruech last edited by

          So trotz das bei https://status.npmjs.org/ wieder alles grün ist habe ich immer noch die gleichen Probleme. Hat jemand ne weitere Idee?

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

            @Kruech
            Zuerst musst du mal schauen, ob node sauber installiert ist:

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

            Dann als user, der auch die Installation durchführt:

            npm cache clean --force
            

            Und dann nochmal den Installer anhauen.

            curl -sL https://iobroker.net/install.sh | bash -
            
            1 Reply Last reply Reply Quote 0
            • K
              Kruech last edited by Kruech

              @Thomas-Braun

              pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v
              /usr/bin/nodejs
              v10.20.1
              /usr/bin/node
              v10.20.1
              /usr/bin/npm
              6.14.4
              

              Cache clean und neu installiert habe ich auch schon probiert. Trotzdem immer

              library: loaded
              Library version=2020-04-12
              
              ==========================================================================
              
                  Welcome to the ioBroker installer!
                  Installer version: 2020-04-12
              
                  You might need to enter your password a couple of times.
              
              ==========================================================================
              
              
              ==========================================================================
                  Installing prerequisites (1/4)
              ==========================================================================
              
              OK:1 http://archive.raspberrypi.org/debian buster InRelease
              OK:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
              OK:3 https://deb.nodesource.com/node_10.x buster InRelease
              Paketlisten werden gelesen... Fertig
              Changing npm registry to https://registry.npmjs.org
              Installed gcc-c++
              
              ==========================================================================
                  Creating ioBroker user and directory (2/4)
              ==========================================================================
              
              Created /etc/sudoers.d/iobroker
              Directory /opt/iobroker created
              
              ==========================================================================
                  Installing ioBroker (3/4)
              ==========================================================================
              
              npm ERR! Unexpected end of JSON input while parsing near '...sk":"^1.0.6","@iobrok'
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/pi/.npm/_logs/2020-06-02T18_53_21_120Z-debug.log
              
              ==========================================================================
                  Finalizing installation (4/4)
              ==========================================================================
              
              Enabling autostart...
              Autostart enabled!
              Fixing directory permissions...
              ==========================================================================
              
              1 Reply Last reply Reply Quote 0
              • K
                Kruech last edited by

                in der log-Datei von der IoBroker installation hab ich immer paar mal nen timeout.

                1051 silly fetchPackageMetaData error for engine.io@~3.4.0 Response timeout while trying to fetch https://registry.npmjs.org/engine.io (over 30000ms)
                

                es sind aber nicht immer die gleichen Pakete.

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

                  @Kruech sagte in Fehler bei der Installation von ioBroker:

                  1051 silly fetchPackageMetaData error for engine.io@~3.4.0 Response timeout while trying to fetch https://registry.npmjs.org/engine.io (over 30000ms)

                  npm install npm@latest -g
                  
                  1 Reply Last reply Reply Quote 0
                  • K
                    Kruech last edited by

                    Ich geh kaputt. jetzt hat das wenigstens schon mal soweit geklappt des der IoBroker installiert wurde und ich per Browser drauf komme.

                    Es sind sehr viele "warnings" bei der Installation aufgelaufen.

                    ==========================================================================
                        Installing ioBroker (3/4)
                    ==========================================================================
                    
                    In file included from ../src/main.cpp:3:
                    ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                    ../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                         , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                  ^
                    In file included from ../../nan/nan.h:56,
                                     from ../src/main.cpp:3:
                    ../src/main.cpp: At global scope:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                           (node::addon_register_func) (regfunc),                          \
                                                               ^
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                       NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                       ^~~~~~~~~~~~~
                    ../src/main.cpp:42:1: note: in expansion of macro ‘NODE_MODULE’
                     NODE_MODULE(diskusage, Init)
                     ^~~~~~~~~~~
                    In file included from /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:63,
                                     from ../../nan/nan.h:56,
                                     from ../src/main.cpp:3:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node_object_wrap.h:84:78:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                    reinterpret_cast<Callback>(callback), type);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                    ../../nan/nan_object_wrap.h:65:61:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                    In file included from ../src/unix_dgram.cc:5:
                    ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                    ../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                         , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                  ^
                    In file included from ../../nan/nan.h:56,
                                     from ../src/unix_dgram.cc:5:
                    ../src/unix_dgram.cc: At global scope:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                           (node::addon_register_func) (regfunc),                          \
                                                               ^
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                       NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                       ^~~~~~~~~~~~~
                    ../src/unix_dgram.cc:404:1: note: in expansion of macro ‘NODE_MODULE’
                     NODE_MODULE(unix_dgram, Initialize)
                     ^~~~~~~~~~~
                    In file included from /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:63,
                                     from ../../nan/nan.h:56,
                                     from ../src/unix_dgram.cc:5:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node_object_wrap.h:84:78:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                    reinterpret_cast<Callback>(callback), type);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                    ../../nan/nan_object_wrap.h:65:61:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                    In file included from ../src/./serialport.h:6,
                                     from ../src/serialport.cpp:1:
                    ../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                    ../../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’}  -Wcast-function-type]
                         , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                  ^
                    ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                       uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
                                                                                         ^~~~~~~~~~~~~
                    ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                       uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
                                                                                           ^~~~~~~~~~~~~~~
                    ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                       uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
                                                                                          ^~~~~~~~~~~~~~
                    ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                       uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
                                                                                          ^~~~~~~~~~~~~~
                    ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                       uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
                                                                                        ^~~~~~~~~~~~
                    ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                       uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
                                                                                        ^~~~~~~~~~~~
                    ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                       uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
                                                                                                ^~~~~~~~~~~~~~~~~~~~
                    ../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
                    ../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
                       uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
                                                                                          ^~~~~~~~~~~~~~
                    ../src/serialport.cpp: At global scope:
                    ../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
                     SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
                                                ^
                    ../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
                     SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
                                                  ^
                    In file included from ../../../nan/nan.h:56,
                                     from ../src/./serialport.h:6,
                                     from ../src/serialport.cpp:1:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
                           (node::addon_register_func) (regfunc),                          \
                                                               ^
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’
                       NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
                       ^~~~~~~~~~~~~
                    ../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’
                     NODE_MODULE(serialport, init);
                     ^~~~~~~~~~~
                    In file included from /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:63,
                                     from ../../../nan/nan.h:56,
                                     from ../src/./serialport.h:6,
                                     from ../src/serialport.cpp:1:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node_object_wrap.h:84:78:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                    reinterpret_cast<Callback>(callback), type);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                    ../../../nan/nan_object_wrap.h:65:61:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                    In file included from ../src/serialport.h:6,
                                     from ../src/serialport_unix.cpp:2:
                    ../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                    ../../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’}  -Wcast-function-type]
                         , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                  ^
                    In file included from /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:63,
                                     from ../../../nan/nan.h:56,
                                     from ../src/serialport.h:6,
                                     from ../src/serialport_unix.cpp:2:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node_object_wrap.h:84:78:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                    reinterpret_cast<Callback>(callback), type);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                    ../../../nan/nan_object_wrap.h:65:61:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                    ../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
                    ../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
                         snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~
                    ../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
                         snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    ../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
                    ../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
                         snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                                                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                    ../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
                         snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    In file included from ../src/poller.cpp:1:
                    ../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
                    ../../../nan/nan.h:2294:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’}  -Wcast-function-type]
                         , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                                                  ^
                    In file included from /home/pi/.cache/node-gyp/10.20.1/include/node/node.h:63,
                                     from ../../../nan/nan.h:56,
                                     from ../src/poller.cpp:1:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’:
                    /home/pi/.cache/node-gyp/10.20.1/include/node/node_object_wrap.h:84:78:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                                    reinterpret_cast<Callback>(callback), type);
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:
                    ../../../nan/nan_object_wrap.h:65:61:   required from here
                    /home/pi/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type]
                    
                    ==========================================================================
                    
                    
                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Kruech last edited by Thomas Braun

                      @Kruech

                      rm -rf /home/pi/.cache/*
                      

                      Und dann würde ich dir eigentlich auch Version 12 von node empfehlen.

                      Zu guter Letzt wirf noch ein

                      iobroker stop
                      iobroker fix
                      

                      hinterher.

                      1 Reply Last reply Reply Quote 0
                      • K
                        Kruech last edited by

                        @Thomas-Braun

                        Vielen Dank für die Hilfe. Dann werde ich jetzt den ganzen Pi nochmal aufsetzten mit Version 12 damit das sauberer ist als wie jetzt. Ich weis gar nicht mehr was ich jetzt alles rumprobiert habe.

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

                          @Kruech
                          Wenn es ansonsten läuft...
                          Aber wie du meinst.
                          Der springende Punkt ist bei dir aus irgendwelchen Gründen die Version von npm.
                          Die musst du vor der Installation des ioBrokers (und nach der Installation von nodejs) auf >=6.14.5 bringen.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

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

                          680
                          Online

                          31.9k
                          Users

                          80.2k
                          Topics

                          1.3m
                          Posts

                          installationsfehler installationsprobleme iobroker installation npm err unexpected end of json
                          3
                          24
                          2206
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo