Hallo zusammen,
wollte die Kiste auch mal wieder updaten und siehe da, ich bin im Forum gelandet.
Trotz aller hier im Thread besprochenen Lösungsvorschläge wird jedesmal nach sudo npm rebuild --unsafe-perm folgende Fehlermeldung ausgespuckt:
> @nestjs/[email protected] postinstall /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/core
> opencollective || exit 0
Thanks for installing nest 🙏
Please consider donating to our open collective
to help us maintain this package.
Number of contributors: 406
Number of backers: 280
Annual budget: US$ 63,915
Current balance: US$ 5,091
👉 Become a partner: https://opencollective.com/nest/donate
> [email protected] install /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/node-pty-prebuilt-multiarch
> prebuild-install || node scripts/install.js
> [email protected] postinstall /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/node-pty-prebuilt-multiarch
> node scripts/post-install.js
> [email protected] install /usr/local/lib/node_modules/homebridge-harmony/node_modules/harmony-websocket/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-harmony/node_modules/harmony-websocket/node_modules/websocket/build? wird betreten
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-harmony/node_modules/harmony-websocket/node_modules/websocket/build? wird verlassen
> [email protected] install /usr/local/lib/node_modules/homebridge-harmony/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-harmony/node_modules/websocket/build? wird betreten
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-harmony/node_modules/websocket/build? wird verlassen
> [email protected] install /usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/usb
> prebuild-install --verbose || node-gyp rebuild
prebuild-install info begin Prebuild-install version 5.3.3
prebuild-install info looking for cached prebuild @ /root/.npm/_prebuilds/1a8738-usb-v1.6.2-node-v72-linux-arm.tar.gz
prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.2/usb-v1.6.2-node-v72-linux-arm.tar.gz
prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v1.6.2/usb-v1.6.2-node-v72-linux-arm.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=12.14.1 runtime=node arch=arm libc= platform=linux)
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/usb/build? wird betreten
CC(target) Release/obj.target/libusb/libusb/libusb/core.o
CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
CC(target) Release/obj.target/libusb/libusb/libusb/io.o
CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
AR(target) Release/obj.target/usb.a
COPY Release/usb.a
CXX(target) Release/obj.target/usb_bindings/src/node_usb.o
../src/node_usb.cc: In function 'void handleHotplug(std::pair<libusb_device*, libusb_hotplug_event>)':
../src/node_usb.cc:151:58: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/node_usb.cc:1:
../node_modules/nan/nan.h:1001:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/usb_bindings/src/device.o
../src/device.cc: In static member function 'static void Req::default_after(uv_work_t*)':
../src/device.cc:237:64: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/device.cc:1:
../node_modules/nan/nan.h:959:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/usb_bindings/src/transfer.o
../src/transfer.cc: In function 'void handleCompletion(Transfer*)':
../src/transfer.cc:126:72: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/transfer.cc:1:
../node_modules/nan/nan.h:959:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/usb_bindings.node
COPY Release/usb_bindings.node
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/usb/build? wird verlassen
> @abandonware/[email protected] install /usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble
> node-gyp rebuild
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/build? wird betreten
SOLINK_MODULE(target) Release/obj.target/noble.node
COPY Release/noble.node
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/noble/build? wird verlassen
> @abandonware/[email protected] install /usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
[@abandonware/bluetooth-hci-socket] Success: "/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/@abandonware/bluetooth-hci-socket/lib/binding/binding.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> [email protected] install /usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/usb
> prebuild-install --verbose || node-gyp rebuild
prebuild-install info begin Prebuild-install version 5.3.3
prebuild-install info looking for cached prebuild @ /root/.npm/_prebuilds/1a8738-usb-v1.6.2-node-v72-linux-arm.tar.gz
prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.2/usb-v1.6.2-node-v72-linux-arm.tar.gz
prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v1.6.2/usb-v1.6.2-node-v72-linux-arm.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=12.14.1 runtime=node arch=arm libc= platform=linux)
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/usb/build? wird betreten
CC(target) Release/obj.target/libusb/libusb/libusb/core.o
CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
CC(target) Release/obj.target/libusb/libusb/libusb/io.o
CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
AR(target) Release/obj.target/usb.a
COPY Release/usb.a
CXX(target) Release/obj.target/usb_bindings/src/node_usb.o
../src/node_usb.cc: In function 'void handleHotplug(std::pair<libusb_device*, libusb_hotplug_event>)':
../src/node_usb.cc:151:58: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(hotplugThis), "emit", 2, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/node_usb.cc:1:
../node_modules/nan/nan.h:1001:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/usb_bindings/src/device.o
../src/device.cc: In static member function 'static void Req::default_after(uv_work_t*)':
../src/device.cc:237:64: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(device, Nan::New(baton->callback), 1, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/device.cc:1:
../node_modules/nan/nan.h:959:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
CXX(target) Release/obj.target/usb_bindings/src/transfer.o
../src/transfer.cc: In function 'void handleCompletion(Transfer*)':
../src/transfer.cc:126:72: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(self->handle(), Nan::New(self->v8callback), 3, argv);
^
In file included from ../src/helpers.h:3:0,
from ../src/node_usb.h:21,
from ../src/transfer.cc:1:
../node_modules/nan/nan.h:959:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/usb_bindings.node
COPY Release/usb_bindings.node
make: Verzeichnis ?/usr/local/lib/node_modules/homebridge-mi-hygrothermograph/node_modules/usb/build? wird verlassen
> [email protected] postinstall /usr/local/lib/node_modules/node-appletv/node_modules/spawn-sync
> node postinstall
> [email protected] postinstall /usr/local/lib/node_modules/node-appletv/node_modules/caporal
> (test -f ./node_modules/husky/bin/install.js && node ./node_modules/husky/bin/install.js) || exit 0
> [email protected] postinstall /usr/local/lib/node_modules/node-appletv/node_modules/spawn-sync
> node postinstall
> [email protected] install /usr/local/lib/node_modules/node-appletv/node_modules/curve25519-n2
> node-gyp rebuild
make: Verzeichnis ?/usr/local/lib/node_modules/node-appletv/node_modules/curve25519-n2/build? wird betreten
CXX(target) Release/obj.target/curve/node_curve.o
../node_curve.cc:20:23: error: variable or field 'init' declared void
extern "C" void init (Handle<Object>);
^~~~~~
../node_curve.cc:20:23: error: 'Handle' was not declared in this scope
../node_curve.cc:20:36: error: expected primary-expression before '>' token
extern "C" void init (Handle<Object>);
^
../node_curve.cc:20:37: error: expected primary-expression before ')' token
extern "C" void init (Handle<Object>);
^
../node_curve.cc: In function 'Nan::NAN_METHOD_RETURN_TYPE DoCurve(Nan::NAN_METHOD_ARGS_TYPE)':
../node_curve.cc:28:73: error: no matching function for call to 'v8::Value::ToObject()'
unsigned char* arg0 = (unsigned char*) Buffer::Data(info[0]->ToObject());
^
In file included from ../node_curve.cc:1:0:
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2576:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^~~~~~~~
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2576:44: note: candidate expects 1 argument, 0 provided
In file included from /root/.cache/node-gyp/12.14.1/include/node/v8-internal.h:14:0,
from /root/.cache/node-gyp/12.14.1/include/node/v8.h:25,
from ../node_curve.cc:1:
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2590:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
Local<Object> ToObject(Isolate* isolate) const);
^
/root/.cache/node-gyp/12.14.1/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2590:31: note: candidate expects 1 argument, 0 provided
Local<Object> ToObject(Isolate* isolate) const);
^
/root/.cache/node-gyp/12.14.1/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../node_curve.cc:29:73: error: no matching function for call to 'v8::Value::ToObject()'
unsigned char* arg1 = (unsigned char*) Buffer::Data(info[1]->ToObject());
^
In file included from ../node_curve.cc:1:0:
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2576:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^~~~~~~~
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2576:44: note: candidate expects 1 argument, 0 provided
In file included from /root/.cache/node-gyp/12.14.1/include/node/v8-internal.h:14:0,
from /root/.cache/node-gyp/12.14.1/include/node/v8.h:25,
from ../node_curve.cc:1:
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2590:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
Local<Object> ToObject(Isolate* isolate) const);
^
/root/.cache/node-gyp/12.14.1/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2590:31: note: candidate expects 1 argument, 0 provided
Local<Object> ToObject(Isolate* isolate) const);
^
/root/.cache/node-gyp/12.14.1/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../node_curve.cc:30:73: error: no matching function for call to 'v8::Value::ToObject()'
unsigned char* arg2 = (unsigned char*) Buffer::Data(info[2]->ToObject());
^
In file included from ../node_curve.cc:1:0:
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2576:44: note: candidate: v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const
V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
^~~~~~~~
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2576:44: note: candidate expects 1 argument, 0 provided
In file included from /root/.cache/node-gyp/12.14.1/include/node/v8-internal.h:14:0,
from /root/.cache/node-gyp/12.14.1/include/node/v8.h:25,
from ../node_curve.cc:1:
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2590:31: note: candidate: v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const
Local<Object> ToObject(Isolate* isolate) const);
^
/root/.cache/node-gyp/12.14.1/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
/root/.cache/node-gyp/12.14.1/include/node/v8.h:2590:31: note: candidate expects 1 argument, 0 provided
Local<Object> ToObject(Isolate* isolate) const);
^
/root/.cache/node-gyp/12.14.1/include/node/v8config.h:311:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../node_curve.cc: At global scope:
../node_curve.cc:34:23: error: variable or field 'init' declared void
extern "C" void init (Handle<Object> target) {
^~~~~~
../node_curve.cc:34:23: error: 'Handle' was not declared in this scope
../node_curve.cc:34:36: error: expected primary-expression before '>' token
extern "C" void init (Handle<Object> target) {
^
../node_curve.cc:34:38: error: 'target' was not declared in this scope
extern "C" void init (Handle<Object> target) {
^~~~~~
In file included from ../node_curve.cc:2:0:
../node_curve.cc:40:20: error: 'init' was not declared in this scope
NODE_MODULE(curve, init)
^
/root/.cache/node-gyp/12.14.1/include/node/node.h:560:36: note: in definition of macro 'NODE_MODULE_X'
(node::addon_register_func) (regfunc), \
^~~~~~~
../node_curve.cc:40:1: note: in expansion of macro 'NODE_MODULE'
NODE_MODULE(curve, init)
^~~~~~~~~~~
In file included from ../node_curve.cc:13:0:
../node_curve.cc:22:19: warning: 'Nan::NAN_METHOD_RETURN_TYPE DoCurve(Nan::NAN_METHOD_ARGS_TYPE)' defined but not used [-Wunused-function]
static NAN_METHOD(DoCurve) {
^
../../nan/nan.h:1566:33: note: in definition of macro 'NAN_METHOD'
Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
^~~~
curve.target.mk:107: die Regel f?r Ziel ?Release/obj.target/curve/node_curve.o? scheiterte
make: *** [Release/obj.target/curve/node_curve.o] Fehler 1
make: Verzeichnis ?/usr/local/lib/node_modules/node-appletv/node_modules/curve25519-n2/build? wird verlassen
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:223:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.14.98-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/node-appletv/node_modules/curve25519-n2
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /root/.npm/_logs/2020-01-17T00_03_02_033Z-debug.log
Alles anzeigen
Irgendwie scheint es nach dem Update der Node sudo n lts (installiert node 12.14.1) einen Fehler mit node-gyp zu geben.
Mithilfe von sudo npm outdated -g wird übrigens folgendes ausgegeben:
Package Current Wanted Latest Location
node-pre-gyp 0.12.0 0.12.0 0.14.0 global
Kann mir jemand weiterhelfen? 