@tk-0
Wird am alten Code des Moduls liegen:
github: 1.0.0
latest: 1.0.0 for 51 months
stable: 1.0.0 for 51 months
Bei mir baut das auch nicht, allerdings mit etwas anderen Meldungen:
echad@chet:/opt/iobroker $ iobroker add piface
NPM version: 8.3.0
npm install iobroker.piface@1.0.0 --loglevel error --prefix "/opt/iobroker" (System call)
npm ERR! code 1
npm ERR! path /opt/iobroker/node_modules/iobroker.piface/node_modules/node-pifacedigital
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/opt/iobroker/node_modules/iobroker.piface/node_modules/node-pifacedigital/build'
npm ERR! CXX(target) Release/obj.target/pifacedigital/src/cpp/init.o
npm ERR! make: Leaving directory '/opt/iobroker/node_modules/iobroker.piface/node_modules/node-pifacedigital/build'
npm ERR! (node:2953) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! In file included from ../src/cpp/init.cc:2:
npm ERR! ../src/cpp/NPIFaceDigital.h: In function ‘void AsyncAfter(uv_work_t*, int)’:
npm ERR! ../src/cpp/NPIFaceDigital.h:74:52: error: no matching function for call to ‘v8::Function::Call(v8::Local<v8::Primitive>, const unsigned int&, v8::Local<v8::Value> [0])’
npm ERR! 74 | info->callback->Call(Null(info->isolate),argc,argv);
npm ERR! | ^
npm ERR! In file included from /home/iobroker/.node-gyp/17.3.0/include/node/v8.h:34,
npm ERR! from /home/iobroker/.node-gyp/17.3.0/include/node/node.h:63,
npm ERR! from ../src/cpp/init.cc:1:
npm ERR! /home/iobroker/.node-gyp/17.3.0/include/node/v8-function.h:54:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*)’
npm ERR! 54 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Call(Local<Context> context,
npm ERR! | ^~~~
npm ERR! /home/iobroker/.node-gyp/17.3.0/include/node/v8-function.h:54:43: note: candidate expects 4 arguments, 3 provided
npm ERR! In file included from ../src/cpp/init.cc:1:
npm ERR! ../src/cpp/init.cc: At global scope:
npm ERR! /home/iobroker/.node-gyp/17.3.0/include/node/node.h:843:7: 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]
npm ERR! 843 | (node::addon_register_func) (regfunc), \
npm ERR! | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/iobroker/.node-gyp/17.3.0/include/node/node.h:877:3: note: in expansion of macro ‘NODE_MODULE_X’
npm ERR! 877 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
npm ERR! | ^~~~~~~~~~~~~
npm ERR! ../src/cpp/init.cc:10:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR! 10 | NODE_MODULE(pifacedigital, Initialize)
npm ERR! | ^~~~~~~~~~~
npm ERR! In file included from ../src/cpp/init.cc:2:
npm ERR! ../src/cpp/NPIFaceDigital.h:61:13: warning: ‘void AsyncAfter(uv_work_t*, int)’ defined but not used [-Wunused-function]
npm ERR! 61 | static void AsyncAfter(uv_work_t *req, int status)
npm ERR! | ^~~~~~~~~~
npm ERR! ../src/cpp/NPIFaceDigital.h:34:13: warning: ‘void WaitForAsync(uv_work_t*)’ defined but not used [-Wunused-function]
npm ERR! 34 | static void WaitForAsync(uv_work_t *req)
npm ERR! | ^~~~~~~~~~~~
npm ERR! make: *** [pifacedigital.target.mk:114: Release/obj.target/pifacedigital/src/cpp/init.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/opt/iobroker/node_modules/iobroker.piface/node_modules/node-gyp/lib/build.js:262:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:390:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.10.63-v8+
npm ERR! gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/iobroker.piface/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /opt/iobroker/node_modules/iobroker.piface/node_modules/node-pifacedigital
npm ERR! gyp ERR! node -v v17.3.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/iobroker/.npm/_logs/2021-12-23T16_57_41_135Z-debug-0.log
host.chet Cannot install iobroker.piface@1.0.0: 1
Mach ein Issue auf. Wenn das Modul noch gepflegt werden sollte...
Schaut aber ehrlich gesagt nicht so aus.