max-christian / homebridge-texecom

A plugin for homebridge (https://github.com/nfarina/homebridge) to integrate Texecom Premier Elite zones into HomeKit
MIT License
27 stars 8 forks source link

Error during installation - @serialport/bindings #15

Closed garethflowers closed 3 years ago

garethflowers commented 4 years ago

Install fails with the following error:

USER: xxxxxx
DIR: /usr/local/lib
CMD: npm install homebridge-texecom@latest

> @serialport/bindings@2.0.8 install /usr/local/lib/node_modules/homebridge-texecom/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=13.13.0 runtime=node arch=x64 libc= platform=darwin)
  CXX(target) Release/obj.target/bindings/src/serialport.o
../src/serialport.cpp:329:14: error: no matching member function for call to
      'Set'
    results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<...
    ~~~~~~~~~^~~
/Users/xxxxxx/Library/Caches/node-gyp/13.13.0/include/node/v8.h:3547:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxx/Library/Caches/node-gyp/13.13.0/include/node/v8.h:3550:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:330:14: error: no matching member function for call to
      'Set'
    results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<...
    ~~~~~~~~~^~~
/Users/xxxxxx/Library/Caches/node-gyp/13.13.0/include/node/v8.h:3547:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxx/Library/Caches/node-gyp/13.13.0/include/node/v8.h:3550:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:331:14: error: no matching member function for call to
      'Set'
    results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<...
    ~~~~~~~~~^~~
/Users/xxxxxx/Library/Caches/node-gyp/13.13.0/include/node/v8.h:3547:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxx/Library/Caches/node-gyp/13.13.0/include/node/v8.h:3550:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:378:14: error: no matching member function for call to
      'Set'
    results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan:...
    ~~~~~~~~~^~~
/Users/xxxxxx/Library/Caches/node-gyp/13.13.0/include/node/v8.h:3547:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/xxxxxx/Library/Caches/node-gyp/13.13.0/include/node/v8.h:3550:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
4 errors generated.
make: *** [Release/obj.target/bindings/src/serialport.o] Error 1

Versions:

garethflowers commented 4 years ago

Looks like a similar issue to #6 - but with a completely different stack trace.

garethflowers commented 4 years ago

Bumping serialport to v8.0.7 seems to resolve the issue for me.

max-christian commented 3 years ago

This should be fixed now.