Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install #259

Open
eyalmnm opened this issue Oct 4, 2020 · 3 comments
Open

Failed to install #259

eyalmnm opened this issue Oct 4, 2020 · 3 comments

Comments

@eyalmnm
Copy link

eyalmnm commented Oct 4, 2020

Hi,
I am trying to install the library but I got the following errors:

Eyals-MacBook-Pro-2:Electron_Base eyalmuchtar$ npm install bluetooth-serial-port
 

> [email protected] install /Users/eyalmuchtar/Projects/Moblers/Electron_Base/node_modules/bluetooth-serial-port
> node-gyp configure build

  CXX(target) Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o
../src/osx/DeviceINQ.mm:75:16: warning: 'Call' is deprecated
      [-Wdeprecated-declarations]
        found->Call(2, argv);
               ^
../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/osx/DeviceINQ.mm:78:15: warning: 'Call' is deprecated
      [-Wdeprecated-declarations]
    callback->Call(0, 0);
              ^
../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/osx/DeviceINQ.mm:109:16: warning: 'Call' is deprecated
      [-Wdeprecated-declarations]
    baton->cb->Call(1, argv);
               ^
../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/osx/DeviceINQ.mm:136:5: warning: ignoring return value of function
      declared with 'warn_unused_result' attribute [-Wunused-result]
    target->Set(ctx, Nan::New("DeviceINQ").ToLocalChecked(), t->GetFunction(ctx).ToLocalChecked());
    ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/osx/DeviceINQ.mm:227:16: warning: 'Call' is deprecated
      [-Wdeprecated-declarations]
        found->Call(2, argv);
               ^
../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/osx/DeviceINQ.mm:230:15: warning: 'Call' is deprecated
      [-Wdeprecated-declarations]
    callback->Call(0, 0);
              ^
../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/osx/DeviceINQ.mm:296:20: error: no matching member function for call to
      'Set'
        deviceObj->Set(Nan::New("name").ToLocalChecked(), Nan::New([devi...
        ~~~~~~~~~~~^~~
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3639:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3642: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/osx/DeviceINQ.mm:297:20: error: no matching member function for call to
      'Set'
        deviceObj->Set(Nan::New("address").ToLocalChecked(), Nan::New([d...
        ~~~~~~~~~~~^~~
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3639:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3642: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/osx/DeviceINQ.mm:307:25: error: no matching member function for call to
      'Set'
            serviceObj->Set(Nan::New("channel").ToLocalChecked(), Nan::N...
            ~~~~~~~~~~~~^~~
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3639:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3642: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/osx/DeviceINQ.mm:310:29: error: no matching member function for call to
      'Set'
                serviceObj->Set(Nan::New("name").ToLocalChecked(), Nan::...
                ~~~~~~~~~~~~^~~
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3639:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3642: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/osx/DeviceINQ.mm:312:29: error: no matching member function for call to
      'Set'
                serviceObj->Set(Nan::New("name").ToLocalChecked(), Nan::...
                ~~~~~~~~~~~~^~~
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3639:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3642: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/osx/DeviceINQ.mm:314:28: error: no matching member function for call to
      'Set'
            servicesArray->Set(j, serviceObj);
            ~~~~~~~~~~~~~~~^~~
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3639:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3642: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/osx/DeviceINQ.mm:316:20: error: no matching member function for call to
      'Set'
        deviceObj->Set(Nan::New("services").ToLocalChecked(), servicesArray);
        ~~~~~~~~~~~^~~
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3639:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3642: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/osx/DeviceINQ.mm:318:22: error: no matching member function for call to
      'Set'
        resultArray->Set(i, deviceObj);
        ~~~~~~~~~~~~~^~~
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3639:37: note: 
      candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/eyalmuchtar/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3642: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/osx/DeviceINQ.mm:324:5: warning: ignoring return value of function
      declared with 'warn_unused_result' attribute [-Wunused-result]
    cb->Call(Nan::GetCurrentContext(), Nan::GetCurrentContext()->Global(), 1, argv);
    ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 warnings and 8 errors generated.
make: *** [Release/obj.target/BluetoothSerialPort/src/osx/DeviceINQ.o] Error 1
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:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/14.4.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /Users/eyalmuchtar/Projects/Moblers/Electron_Base/node_modules/bluetooth-serial-port
gyp ERR! node -v v14.4.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp configure build`
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!     /Users/eyalmuchtar/.npm/_logs/2020-10-04T16_45_54_599Z-debug.log
Eyals-MacBook-Pro-2:Electron_Base eyalmuchtar$ 
Eyals-MacBook-Pro-2:Electron_Base eyalmuchtar$ node-gyp configure buil
-bash: node-gyp: command not found
Eyals-MacBook-Pro-2:Electron_Base eyalmuchtar$ 
@eelcocramer
Copy link
Owner

Hi. Thanks for your intrest is using the module. I do not maintain this anymore but there is a fork that is active and seems to have move forward on some of the issues this module currently has. You may want to check it out: https://github.com/tinyprinter/node-bluetooth-serial-port

@tsapko3628
Copy link

Hi. If I send you a pull request, will you merge it?

@eelcocramer
Copy link
Owner

Thanks for reaching out.

I will definitely consider any PR. Of course I need to do some checks before merging it so I cannot make any promises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants