npm install git://github.com/manueloverdijk/myonodebluetooth.git
npm ERR! code 1
npm ERR! path /Users/shahineskandari/node_modules/MyoNodeBluetooth/node_modules/noble
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! noble install: platform is "darwin'
npm ERR! noble install: installing xpc-connection ...
npm ERR! noble install: done
npm ERR! npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm ERR! npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm ERR! npm WARN deprecated [email protected]: No longer maintained
npm ERR! npm WARN deprecated [email protected]: Mocha v1.x is no longer supported.
npm ERR! npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /Users/shahineskandari/node_modules/MyoNodeBluetooth/node_modules/noble/node_modules/xpc-connection
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c node-gyp rebuild
npm ERR! npm ERR! CXX(target) Release/obj.target/binding/src/XpcConnection.o
npm ERR! npm ERR! gyp info it worked if it ends with ok
npm ERR! npm ERR! gyp info using [email protected]
npm ERR! npm ERR! gyp info using [email protected] | darwin | arm64
npm ERR! npm ERR! gyp info find Python using Python version 3.9.10 found at "/Library/Frameworks/Python.framework/Versions/3.9/bin/python3"
npm ERR! npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.9/bin/python3
npm ERR! npm ERR! gyp info spawn args [
npm ERR! npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! npm ERR! gyp info spawn args '-f',
npm ERR! npm ERR! gyp info spawn args 'make',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args '/Users/shahineskandari/node_modules/MyoNodeBluetooth/node_modules/noble/node_modules/xpc-connection/build/config.gypi',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! npm ERR! gyp info spawn args '-I',
npm ERR! npm ERR! gyp info spawn args '/Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/common.gypi',
npm ERR! npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/shahineskandari/Library/Caches/node-gyp/16.14.1',
npm ERR! npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/shahineskandari/Library/Caches/node-gyp/16.14.1/<(target_arch)/node.lib',
npm ERR! npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/shahineskandari/node_modules/MyoNodeBluetooth/node_modules/noble/node_modules/xpc-connection',
npm ERR! npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! npm ERR! gyp info spawn args '--depth=.',
npm ERR! npm ERR! gyp info spawn args '--no-parallel',
npm ERR! npm ERR! gyp info spawn args '--generator-output',
npm ERR! npm ERR! gyp info spawn args 'build',
npm ERR! npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! npm ERR! gyp info spawn args ]
npm ERR! npm ERR! gyp info spawn make
npm ERR! npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! npm ERR! ../src/XpcConnection.cpp:26:77: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! npm ERR! target->Set(Nan::New("XpcConnection").ToLocalChecked(), tmpl->GetFunction());
npm ERR! npm ERR! ~~~~~~~~~~~~~~~~~ ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:6802:46: note: 'GetFunction' declared here
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:26:11: error: no matching member function for call to 'Set'
npm ERR! npm ERR! target->Set(Nan::New("XpcConnection").ToLocalChecked(), tmpl->GetFunction());
npm ERR! npm ERR! ~~~~~~~~^~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local<Context> context,
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local<Context> context, uint32_t index,
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:103:54: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! npm ERR! xpcObject = xpc_int64_create(value->IntegerValue());
npm ERR! npm ERR! ~~~~~~~~~~~~~~~~~~~ ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3101:40: note: 'IntegerValue' declared here
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:103:17: error: no matching function for call to 'xpc_int64_create'
npm ERR! npm ERR! xpcObject = xpc_int64_create(value->IntegerValue());
npm ERR! npm ERR! ^~~~~~~~~~~~~~~~
npm ERR! npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/xpc/xpc.h:591:1: note: candidate function not viable: no known conversion from 'Maybe<int64_t>' (aka 'Maybe') to 'int64_t' (aka 'long long') for 1st argument
npm ERR! npm ERR! xpc_int64_create(int64_t value);
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:113:49: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! npm ERR! Local<Object> valueObject = value->ToObject();
npm ERR! npm ERR! ~~~~~~~~~~~~~~~ ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3060:44: note: 'ToObject' declared here
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:113:19: error: no viable conversion from 'MaybeLocalv8::Object' to 'Localv8::Object'
npm ERR! npm ERR! Local<Object> valueObject = value->ToObject();
npm ERR! npm ERR! ^ ~~~~~~~~~~~~~~~~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:200:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MaybeLocalv8::Object' to 'const v8::Localv8::Object &' for 1st argument
npm ERR! npm ERR! class Local {
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:200:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MaybeLocalv8::Object' to 'v8::Localv8::Object &&' for 1st argument
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:204:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
npm ERR! npm ERR! V8_INLINE Local(Local<S> that)
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:348:22: note: explicit constructor is not a candidate
npm ERR! npm ERR! explicit V8_INLINE Local(T* that) : val_(that) {}
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:115:78: error: too few arguments to function call, expected 2, have 1
npm ERR! npm ERR! if (valueObject->HasRealNamedProperty(Nan::New("isUuid").ToLocalChecked())) {
npm ERR! npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:4250:37: note: 'HasRealNamedProperty' declared here
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT Maybe HasRealNamedProperty(Local<Context> context,
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:115:9: error: value of type 'Maybe' is not contextually convertible to 'bool'
npm ERR! npm ERR! if (valueObject->HasRealNamedProperty(Nan::New("isUuid").ToLocalChecked())) {
npm ERR! npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! npm ERR! ../src/XpcConnection.cpp:123:49: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! npm ERR! Local<Object> valueObject = value->ToObject();
npm ERR! npm ERR! ~~~~~~~~~~~~~~~ ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3060:44: note: 'ToObject' declared here
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:123:19: error: no viable conversion from 'MaybeLocalv8::Object' to 'Localv8::Object'
npm ERR! npm ERR! Local<Object> valueObject = value->ToObject();
npm ERR! npm ERR! ^ ~~~~~~~~~~~~~~~~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:200:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MaybeLocalv8::Object' to 'const v8::Localv8::Object &' for 1st argument
npm ERR! npm ERR! class Local {
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:200:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MaybeLocalv8::Object' to 'v8::Localv8::Object &&' for 1st argument
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:204:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
npm ERR! npm ERR! V8_INLINE Local(Local<S> that)
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:348:22: note: explicit constructor is not a candidate
npm ERR! npm ERR! explicit V8_INLINE Local(T* that) : val_(that) {}
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:135:40: error: no matching member function for call to 'GetPropertyNames'
npm ERR! npm ERR! Local<Array> propertyNames = object->GetPropertyNames();
npm ERR! npm ERR! ~~~~~~~~^~~~~~~~~~~~~~~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:4115:43: note: candidate function not viable: requires single argument 'context', but no arguments were provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:4117:43: note: candidate function not viable: requires at least 4 arguments, but 0 were provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:138:48: error: no matching member function for call to 'Get'
npm ERR! npm ERR! Local<Value> propertyName = propertyNames->Get(i);
npm ERR! npm ERR! ~~~~~~~~~~~~~~~^~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:143:88: error: too few arguments to function call, single argument 'context' was not specified
npm ERR! npm ERR! Local<Value> propertyValue = object->GetRealNamedProperty(propertyName->ToString());
npm ERR! npm ERR! ~~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3048:44: note: 'ToString' declared here
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:143:89: error: too few arguments to function call, expected 2, have 1
npm ERR! npm ERR! Local<Value> propertyValue = object->GetRealNamedProperty(propertyName->ToString());
npm ERR! npm ERR! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:4278:43: note: 'GetRealNamedProperty' declared here
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:143:20: error: no viable conversion from 'MaybeLocalv8::Value' to 'Localv8::Value'
npm ERR! npm ERR! Local<Value> propertyValue = object->GetRealNamedProperty(propertyName->ToString());
npm ERR! npm ERR! ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:200:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MaybeLocalv8::Value' to 'const v8::Localv8::Value &' for 1st argument
npm ERR! npm ERR! class Local {
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:200:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MaybeLocalv8::Value' to 'v8::Localv8::Value &&' for 1st argument
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:204:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
npm ERR! npm ERR! V8_INLINE Local(Local<S> that)
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:348:22: note: explicit constructor is not a candidate
npm ERR! npm ERR! explicit V8_INLINE Local(T* that) : val_(that) {}
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:160:33: error: no matching member function for call to 'Get'
npm ERR! npm ERR! Local<Value> value = array->Get(i);
npm ERR! npm ERR! ~~~~~~~^~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:200:13: error: no matching member function for call to 'Set'
npm ERR! npm ERR! object->Set(Nan::New<String>(key).ToLocalChecked(), XpcConnection::XpcObjectToValue(value));
npm ERR! npm ERR! ~~~~~~~~^~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local<Context> context,
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local<Context> context, uint32_t index,
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:212:12: error: no matching member function for call to 'Set'
npm ERR! npm ERR! array->Set(Nan::New<Number>(index), XpcConnection::XpcObjectToValue(value));
npm ERR! npm ERR! ~~~~~~~^~~
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local<Context> context,
npm ERR! npm ERR! ^
npm ERR! npm ERR! /Users/shahineskandari/Library/Caches/node-gyp/16.14.1/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR! npm ERR! V8_WARN_UNUSED_RESULT Maybe Set(Local<Context> context, uint32_t index,
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:254:12: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
npm ERR! npm ERR! Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../node_modules/nan/nan.h:1049:3: note: 'MakeCallback' has been explicitly marked deprecated here
npm ERR! npm ERR! NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../node_modules/nan/nan.h:108:40: note: expanded from macro 'NAN_DEPRECATED'
npm ERR! npm ERR! # define NAN_DEPRECATED attribute((deprecated))
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../src/XpcConnection.cpp:263:12: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
npm ERR! npm ERR! Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../node_modules/nan/nan.h:1049:3: note: 'MakeCallback' has been explicitly marked deprecated here
npm ERR! npm ERR! NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
npm ERR! npm ERR! ^
npm ERR! npm ERR! ../node_modules/nan/nan.h:108:40: note: expanded from macro 'NAN_DEPRECATED'
npm ERR! npm ERR! # define NAN_DEPRECATED attribute((deprecated))
npm ERR! npm ERR! ^
npm ERR! npm ERR! 2 warnings and 18 errors generated.
npm ERR! npm ERR! make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
npm ERR! npm ERR! gyp ERR! build error
npm ERR! npm ERR! gyp ERR! stack Error: make failed with exit code: 2
npm ERR! npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28)
npm ERR! npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! npm ERR! gyp ERR! System Darwin 21.3.0
npm ERR! npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! npm ERR! gyp ERR! cwd /Users/shahineskandari/node_modules/MyoNodeBluetooth/node_modules/noble/node_modules/xpc-connection
npm ERR! npm ERR! gyp ERR! node -v v16.14.1
npm ERR! npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! npm ERR! gyp ERR! not ok
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /Users/shahineskandari/.npm/_logs/2022-03-17T06_34_55_541Z-debug-0.log
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/shahineskandari/.npm/_logs/2022-03-17T06_34_46_820Z-debug-0.log
macbookpro m1