Guten Morgen zusammen,
nach dem sudo apt upgrade & sudo apt update hab ich folgende Fehler bekommen. Habe auch
sudo npm install -g npm@latest durchlaufen lassen - ohne Probleme. Homebridge funktioniert auch. An was kann das liegen? Muss dazu sagen das ich auf dem Raspi 4 neben Homebridge auch noch iobroker laufen habe. Der Quellcode ist zu lang hier rein zu kopieren habe einmal den Schluss eingefügt.
Danke vorab für Eure Hilfe!
Code
npm error | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error In file included from ../../../nan/nan.h:423:
npm error ../../../nan/nan_persistent_12_inl.h:12:40: note: ‘class Nan::Persiste nt<v8::Function>’ declared here
npm error 12 | template<typename T, typename M> class Persistent :
npm error | ^~~~~~~~~~
npm error ../src/unix/pty.cc: At global scope:
npm error /root/.cache/node-gyp/24.11.1/include/node/node.h:1279:7: warning: cas t between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTIO N_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_f unc’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcas t-function-type]
npm error 1279 | (node::addon_register_func) (regfunc), \
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/24.11.1/include/node/node.h:1313:3: note: in exp ansion of macro ‘NODE_MODULE_X’
npm error 1313 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readabi lity/null_usage)
npm error | ^~~~~~~~~~~~~
npm error ../src/unix/pty.cc:839:1: note: in expansion of macro ‘NODE_MODULE’
npm error 839 | NODE_MODULE(pty, init)
npm error | ^~~~~~~~~~~
npm error ../../../nan/nan_persistent_12_inl.h: In instantiation of ‘Nan::Persis tent<T, M>::Persistent(v8::Local<S>) [with S = v8::Function; T = v8::Function; M = v8::NonCopyablePersistentTraits<v8::Function>]’:
npm error ../../../nan/nan.h:1699:58: required from here
npm error ../../../nan/nan_persistent_12_inl.h:18:59: error: no matching functio n for call to ‘v8::Persistent<v8::Function, v8::NonCopyablePersistentTraits<v8:: Function> >::Persistent(v8::Isolate*, v8::Local<v8::Function>&)’
npm error 18 | v8::Persistent<T, M>(v8::Isolate::GetCurrent(), that) {}
npm error | ^
npm error /root/.cache/node-gyp/24.11.1/include/node/v8-persistent-handle.h:289: 13: note: candidate: ‘template<class S, class M2> v8::Persistent<T, M>::Persiste nt(const v8::Persistent<S, M>&) [with M2 = S; T = v8::Function; M = v8::NonCopya blePersistentTraits<v8::Function>]’
npm error 289 | V8_INLINE Persistent(const Persistent<S, M2>& that) : Persis tentBase<T>() {
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/24.11.1/include/node/v8-persistent-handle.h:289: 13: note: template argument deduction/substitution failed:
npm error ../../../nan/nan_persistent_12_inl.h:18:59: note: mismatched types ‘ const v8::Persistent<S, M>’ and ‘v8::Isolate*’
npm error 18 | v8::Persistent<T, M>(v8::Isolate::GetCurrent(), that) {}
npm error | ^
npm error /root/.cache/node-gyp/24.11.1/include/node/v8-persistent-handle.h:285: 13: note: candidate: ‘v8::Persistent<T, M>::Persistent(const v8::Persistent<T, M >&) [with T = v8::Function; M = v8::NonCopyablePersistentTraits<v8::Function>]’
npm error 285 | V8_INLINE Persistent(const Persistent& that) : PersistentBas e<T>() {
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/24.11.1/include/node/v8-persistent-handle.h:285: 13: note: candidate expects 1 argument, 2 provided
npm error /root/.cache/node-gyp/24.11.1/include/node/v8-persistent-handle.h:255: 13: note: candidate: ‘constexpr v8::Persistent<T, M>::Persistent() [with T = v8: :Function; M = v8::NonCopyablePersistentTraits<v8::Function>]’
npm error 255 | V8_INLINE Persistent() = default;
npm error | ^~~~~~~~~~
npm error /root/.cache/node-gyp/24.11.1/include/node/v8-persistent-handle.h:255: 13: note: candidate expects 0 arguments, 2 provided
npm error In file included from /root/.cache/node-gyp/24.11.1/include/node/v8-is olate.h:22,
npm error from /root/.cache/node-gyp/24.11.1/include/node/v8-sn apshot.h:9,
npm error from /root/.cache/node-gyp/24.11.1/include/node/v8-co ntext.h:15:
npm error /root/.cache/node-gyp/24.11.1/include/node/v8-function-callback.h: In instantiation of ‘v8::Local<v8::Value> v8::FunctionCallbackInfo<F>::operator[](i nt) const [with T = v8::Value]’:
npm error ../../../nan/nan_callbacks_12_inl.h:115:69: required from ‘v8::Local <v8::Value> Nan::FunctionCallbackInfo<T>::operator[](int) const [with T = v8::Va lue]’
npm error ../src/unix/pty.cc:162:14: required from here
npm error /root/.cache/node-gyp/24.11.1/include/node/v8-function-callback.h:623: 47: error: could not convert ‘v8::Undefined(((const v8::FunctionCallbackInfo<v8: :Value>*)this)->v8::FunctionCallbackInfo<v8::Value>::GetIsolate())’ from ‘Local< v8::Primitive>’ to ‘Local<v8::Value>’
npm error 623 | if (i < 0 || Length() <= i) return Undefined(GetIsolate());
npm error | ~~~~~~~~~^~~~~~~~~~~~~~
npm error | |
npm error | Local<v8::Primit ive>
npm error make: *** [pty.target.mk:114: Release/obj.target/pty/src/unix/pty.o] E rror 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/opt/homebridge/lib/node_m odules/npm/node_modules/node-gyp/lib/build.js:219:23)
npm error gyp ERR! System Linux 6.12.47+rpt-rpi-v8
npm error gyp ERR! command "/opt/homebridge/bin/node" "/opt/homebridge/lib/node_ modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /var/lib/homebridge/node_modules/homebridge-lg-thinq/node _modules/@homebridge/node-pty-prebuilt-multiarch
npm error gyp ERR! node -v v24.11.1
npm error gyp ERR! node-gyp -v v11.4.2
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-11-2 6T06_29_38_428Z-debug-0.log
Running post-install steps...
The system user `homebridge' already exists. Exiting.
cp: cannot create regular file '/home/homebridge/.bashrc': No such file or direc tory
chown: cannot access '/home/homebridge/.bashrc': No such file or directory
Starting Homebridge service....
Setting up chromium-sandbox (1:142.0.7444.175-1~deb12u1+rpt1) ...
Setting up chromium-common (1:142.0.7444.175-1~deb12u1+rpt1) ...
Setting up chromium (1:142.0.7444.175-1~deb12u1+rpt1) ...
Setting up chromium-l10n (1:142.0.7444.175-1~deb12u1+rpt1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1.1) ...
Processing triggers for libc-bin (2.36-9+rpt2+deb12u13) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for mailcap (3.70+nmu1) ...
Alles anzeigen