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

Node-gyp Error when updating Electron Version #2129

Closed
miguel436 opened this issue May 14, 2020 · 1 comment
Closed

Node-gyp Error when updating Electron Version #2129

miguel436 opened this issue May 14, 2020 · 1 comment

Comments

@miguel436
Copy link

Hello everyone, I am currently working on an electron app which requires the module node-bluetooth and, consequently, node-gyp too. Currently, I have this fully operational environment:

  • Windows 10
  • Electron: v4.2.12 (comes with node v10.11.0)
  • Nodejs: v10.16.3
  • Node-gyp: v3.8.0
  • MS Build Tools: 2015 & 2017 (from Visual Studio 2017, not 2019)
  • Python: 2.7

Everything works perfectly fine but I need to update Electron to one of the latest versions and, when I do, I become unable to get the app to work properly due to complications with node-bluetooth and node-gyp. This is what I did to perform the update (in this exact order):

By the end of this, my new, updated, environment was the following:

  • Windows 10
  • Electron: v8.2.5 (comes with node v12.13.0)
  • Nodejs: v12.16.3
  • Node-gyp: v5.1.0 (also tried v6.1.0, but result was the same)
  • MS Build Tools: 2015 & 2017 (from Visual Studio 2017, not 2019)
  • Python: 2.7

Then, I opened the Powershell with admin rights in main folder of the Electron app and ran npm install electron@latest followed by npm install which, unfortunately, threw the following error when installing node-bluetooth:

gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
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.

(Check Complete Error Log Here!)

[email protected] install C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth
node-gyp configure build
C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" configure build ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" configure build )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
BluetoothSerialPort.cc
DeviceINQ.cc
BTSerialPortBinding.cc
BluetoothHelpers.cc
win_delay_load_hook.cc
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(39): warnin
g C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define WINSOCK_DEPRECATED_NO_WARNINGS to disable
deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerial
Port.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3566): note: see declaration of 'WSAStringT
oAddressA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(65): warnin
g C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node
-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(74): warnin
g C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node
-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(125): warni
ng C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\nod
e-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(186): warni
ng C4996: 'v8::Object::Get': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bl
uetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(3553): note: see declaration of 'v8::Object::
Get'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(196): warni
ng C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\nod
e-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(219): error
C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-
mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(6126): note: see declaration of 'v8::Function
Template::GetFunction' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(219): error
C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node

modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(220): error
C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-
mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(6126): note: see declaration of 'v8::Function
Template::GetFunction' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(220): error
C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_
modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(221): error
C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-
mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(6126): note: see declaration of 'v8::Function
Template::GetFunction' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(221): error
C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_
modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(242): error
C2664: 'v8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot convert argument 1 from 'v8::Local' to 'const v8::String::Utf8Value &' [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth
build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(242): not
e: Reason: cannot convert from 'v8::Localv8::Value' to 'const v8::String::Utf8Value'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(242): not
e: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(243): error
C2660: 'v8::Value::Int32Value': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_
modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(2709): note: see declaration of 'v8::Value::I
nt32Value' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(352): warni
ng C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\nod
e-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(44): warning C4996: '
_WSAQuerySetA::dwSize': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API wa
rnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1320): note: see declaration of '_WSAQueryS
etA::dwSize'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(45): warning C4996: '
_WSAQuerySetA::dwNameSpace': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated A
PI warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj
]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1325): note: see declaration of '_WSAQueryS
etA::dwNameSpace'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(46): warning C4996: '
_WSAQuerySetA::lpServiceClassId': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable depreca
ted API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vc
xproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1322): note: see declaration of '_WSAQueryS
etA::lpServiceClassId'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(47): warning C4996: '
_WSAQuerySetA::dwNumberOfCsAddrs': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprec
ated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.v
cxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1331): note: see declaration of '_WSAQueryS
etA::dwNumberOfCsAddrs'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(48): warning C4996: '
_WSAQuerySetA::lpszContext': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated A
PI warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj
]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1327): note: see declaration of '_WSAQueryS
etA::lpszContext'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(61): warning C4996: '
_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated A
PI warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj
]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQueryS
etA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(52): warning C4996: '
WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable depr
ecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort
.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3628): note: see declaration of 'WSALookupS
erviceBeginA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(58): warning C4996: '
WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprec
ated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.v
cxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3679): note: see declaration of 'WSALookupS
erviceNextA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(104): warning C4996:
'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetoot
h\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(128): error C2660: 'v
8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\nod
e_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(6126): note: see declaration of 'v8::Function
Template::GetFunction' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(128): error C2661: 'v
8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\no
de-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(129): error C2660: 'v
8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\nod
e_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(6126): note: see declaration of 'v8::Function
Template::GetFunction' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(129): error C2661: 'v
8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\no
de-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(130): error C2660: 'v
8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\nod
e_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(6126): note: see declaration of 'v8::Function
Template::GetFunction' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(130): error C2661: 'v
8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\no
de-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(131): error C2660: 'v
8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\nod
e_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(6126): note: see declaration of 'v8::Function
Template::GetFunction' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(131): error C2661: 'v
8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\no
de-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(146): warning C4996:
'_WSAQuerySetA::dwSize': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API w
arnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1320): note: see declaration of '_WSAQueryS
etA::dwSize'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(147): warning C4996:
'_WSAQuerySetA::dwNameSpace': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1325): note: see declaration of '_WSAQueryS
etA::dwNameSpace'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(168): warning C4996:
'_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQueryS
etA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(172): warning C4996:
'_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQueryS
etA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(180): warning C4473:
'sscanf_s' : not enough arguments passed for format string [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\n
ode-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(180): note: placeho
lders and their parameters expect 2 variadic arguments, but 1 were provided
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(180): note: the mis
sing variadic argument 2 is required by format string '%18[^)]'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(180): note: this ar
gument is used as a buffer size
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(185): warning C4996:
'_WSAQuerySetA::lpszServiceInstanceName': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable
deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSeria
lPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1321): note: see declaration of '_WSAQueryS
etA::lpszServiceInstanceName'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(151): warning C4996:
'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable dep
recated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPor
t.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3628): note: see declaration of 'WSALookupS
erviceBeginA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(164): warning C4996:
'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable depre
cated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.
vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3679): note: see declaration of 'WSALookupS
erviceNextA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(172): warning C4996:
'WSAAddressToStringA': Use WSAAddressToStringW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecate
d API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxp
roj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3507): note: see declaration of 'WSAAddress
ToStringA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(267): warning C4996:
'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetoot
h\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(270): warning C4996:
'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetoot
h\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(299): warning C4996:
'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetoot
h\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(302): warning C4996:
'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetoot
h\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::C
all'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(336): error C2664: 'v
8::String::Utf8Value::Utf8Value(const v8::String::Utf8Value &)': cannot convert argument 1 from 'v8::Localv8::Value'
to 'const v8::String::Utf8Value &' [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\Blue
toothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(336): note: Reason:
cannot convert from 'v8::Localv8::Value' to 'const v8::String::Utf8Value'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(336): note: No user
-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(378): warning C4996:
'_WSAQuerySetA::dwSize': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API w
arnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1320): note: see declaration of '_WSAQueryS
etA::dwSize'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(379): warning C4996:
'_WSAQuerySetA::dwNameSpace': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1325): note: see declaration of '_WSAQueryS
etA::dwNameSpace'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(394): warning C4996:
'_WSAQuerySetA::dwOutputFlags': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecate
d API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxp
roj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1333): note: see declaration of '_WSAQueryS
etA::dwOutputFlags'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(397): warning C4996:
'_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQueryS
etA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(401): warning C4996:
'_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQueryS
etA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(410): warning C4473:
'sscanf_s' : not enough arguments passed for format string [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\n
ode-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(410): note: placeho
lders and their parameters expect 2 variadic arguments, but 1 were provided
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(410): note: the mis
sing variadic argument 2 is required by format string '%18[^)]'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(410): note: this ar
gument is used as a buffer size
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(411): warning C4473:
'sscanf_s' : not enough arguments passed for format string [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\n
ode-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(411): note: placeho
lders and their parameters expect 2 variadic arguments, but 1 were provided
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(411): note: the mis
sing variadic argument 2 is required by format string '%18[^)]'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(411): note: this ar
gument is used as a buffer size
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(416): warning C4996:
'_WSAQuerySetA::lpszServiceInstanceName': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable
deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSeria
lPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1321): note: see declaration of '_WSAQueryS
etA::lpszServiceInstanceName'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(428): warning C4996:
'_WSAQuerySetA::dwSize': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API w
arnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1320): note: see declaration of '_WSAQueryS
etA::dwSize'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(429): warning C4996:
'_WSAQuerySetA::lpszContext': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1327): note: see declaration of '_WSAQueryS
etA::lpszContext'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(431): warning C4996:
'_WSAQuerySetA::lpServiceClassId': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprec
ated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.v
cxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1322): note: see declaration of '_WSAQueryS
etA::lpServiceClassId'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(432): warning C4996:
'_WSAQuerySetA::dwNameSpace': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1325): note: see declaration of '_WSAQueryS
etA::dwNameSpace'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(444): warning C4996:
'_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated
API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxpro
j]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQueryS
etA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(447): warning C4996:
'_WSAQuerySetA::lpszServiceInstanceName': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable
deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSeria
lPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1321): note: see declaration of '_WSAQueryS
etA::lpszServiceInstanceName'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(522): error C2660: 'v
8::Function::Call': function does not take 3 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-
bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(4298): note: see declaration of 'v8::Function
::Call' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(385): warning C4996:
'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable dep
recated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPor
t.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3628): note: see declaration of 'WSALookupS
erviceBeginA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(391): warning C4996:
'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable depre
cated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.
vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3679): note: see declaration of 'WSALookupS
erviceNextA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(401): warning C4996:
'WSAAddressToStringA': Use WSAAddressToStringW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecate
d API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxp
roj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3507): note: see declaration of 'WSAAddress
ToStringA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(416): warning C4996:
'v8::Object::Set': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\bu
ild\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(3498): note: see declaration of 'v8::Object::
Set'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(417): warning C4996:
'v8::Object::Set': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\bu
ild\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(3498): note: see declaration of 'v8::Object::
Set'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(438): warning C4996:
'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable dep
recated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPor
t.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3628): note: see declaration of 'WSALookupS
erviceBeginA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(442): warning C4996:
'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable depre
cated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.
vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3679): note: see declaration of 'WSALookupS
erviceNextA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(446): warning C4996:
'v8::Object::Set': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\bu
ild\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(3498): note: see declaration of 'v8::Object::
Set'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(447): warning C4996:
'v8::Object::Set': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\bu
ild\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(3498): note: see declaration of 'v8::Object::
Set'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(448): warning C4996:
'v8::Object::Set': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\bu
ild\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(3507): note: see declaration of 'v8::Object::
Set'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(477): warning C4996:
'v8::Object::Set': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\bu
ild\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(3498): note: see declaration of 'v8::Object::
Set'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(478): warning C4996:
'v8::Object::Set': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\bu
ild\BluetoothSerialPort.vcxproj]
c:\users\joaquim\appdata\local\node-gyp\cache\12.16.3\include\node\v8.h(3507): note: see declaration of 'v8::Object::
Set'
win_delay_load_hook.cc
BluetoothSerialPortServer.vcxproj -> C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\R
elease\BluetoothSerialPortServer.node
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:310:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth
gyp ERR! node -v v12.16.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
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.

After looking through similar issues in github and stackoverflow, I read that one possible solution was to downgrade the Nodejs version to 11.X. So, I repeated the previous approach using Node v11.15.0 instead of v12.16.3. Once again, I purged everything from Node-gyp to the package-lock and node-modules and fresh installed all of them again. Thus, my new final environment was the following:

  • Windows 10
  • Electron: v8.2.5 (comes with node v12.13.0)
  • Nodejs: v11.15.0
  • Node-gyp: v6.1.0
  • MS Build Tools: 2015 & 2017 (from Visual Studio 2017, not 2019)
  • Python: 2.7

Initially, with this setup, I also had node-gyp v5.1.0 and the same installation error as previosly described. However, after updating node-gyp to v6.1.0, I finally managed to install the module node-bluetooth (which did not happen when using node-gyp v6.1.0 and node 12.16). The final step was to run the command .\node_modules\.bin\electron-rebuild.cmd and start the electron app. However, when rebuilding the app, the following error was thrown when rebuilding node-bluetooth:

gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\electron-rebuild\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:193:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\electron-rebuild\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--target=8.2.5" "--arch=x64" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth
gyp ERR! node -v v11.15.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

(Check Complete Error Log Here!)

PS C:\Users\Joaquim\Desktop\TempestMASTR-mestre> .\node_modules.bin\electron-rebuild.cmd
× Rebuild Failed

An unhandled error occurred inside electron-rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info find Python using Python version 2.7.15 found at "C:\Users\Joaquim.windows-build-tools\python27\python.exe"
gyp info find VS using VS2017 (15.9.28307.1146) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Users\Joaquim.windows-build-tools\python27\python.exe
gyp info spawn args [ 'C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\electron-rebuild\node_modules\node-gyp\gyp\gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\config.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\electron-rebuild\node_modules\node-gyp\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\Users\Joaquim\.electron-gyp\8.2.5\include\node\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\Users\Joaquim\.electron-gyp\8.2.5',
gyp info spawn args '-Dnode_gyp_dir=C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\electron-rebuild\node_modules\node-gyp',
gyp info spawn args '-Dnode_lib_file=C:\\Users\\Joaquim\\.electron-gyp\\8.2.5\\<(target_arch)\\node.lib',
gyp info spawn args '-Dmodule_root_dir=C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
BluetoothSerialPort.cc
DeviceINQ.cc
BTSerialPortBinding.cc
BluetoothHelpers.cc
win_delay_load_hook.cc
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(8923): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\src\windows\BluetoothSerialPort.cc) [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\src\windows\BluetoothSerialPort.cc)
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(8931): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\src\windows\BluetoothSerialPort.cc) [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\src\windows\BluetoothSerialPort.cc)
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(8923): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\src\windows\BTSerialPortBinding.cc) [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(8931): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\src\windows\BTSerialPortBinding.cc) [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(8923): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\src\windows\DeviceINQ.cc) [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(8931): warning C4996: 'v8::MicrotasksCompletedCallback': Use *WithData version. (compiling source file ..\src\windows\DeviceINQ.cc) [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(7238): note: see declaration of 'v8::MicrotasksCompletedCallback' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(39): warning C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3566): note: see declaration of 'WSAStringToAddressA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(65): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(74): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(125): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(186): error C2661: 'v8::Object::Get': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(186): error C2672: 'v8::Localv8::Function::Cast': no matching overloaded function found [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(196): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(219): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(6369): note: see declaration of 'v8::FunctionTemplate::GetFunction' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(219): error C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(220): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(6369): note: see declaration of 'v8::FunctionTemplate::GetFunction' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(220): error C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(221): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(6369): note: see declaration of 'v8::FunctionTemplate::GetFunction' (compiling source file ..\src\windows\BTSerialPortBinding.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(221): error C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(242): warning C4996: 'v8::String::Utf8Value::Utf8Value': Use Isolate version [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(3236): note: see declaration of 'v8::String::Utf8Value::Utf8Value'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(243): warning C4996: 'v8::Value::Int32Value': Use maybe version [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(2819): note: see declaration of 'v8::Value::Int32Value'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\btserialportbinding.cc(352): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(44): warning C4996: '_WSAQuerySetA::dwSize': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1320): note: see declaration of '_WSAQuerySetA::dwSize'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(45): warning C4996: '_WSAQuerySetA::dwNameSpace': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1325): note: see declaration of '_WSAQuerySetA::dwNameSpace'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(46): warning C4996: '_WSAQuerySetA::lpServiceClassId': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1322): note: see declaration of '_WSAQuerySetA::lpServiceClassId'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(47): warning C4996: '_WSAQuerySetA::dwNumberOfCsAddrs': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1331): note: see declaration of '_WSAQuerySetA::dwNumberOfCsAddrs'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(48): warning C4996: '_WSAQuerySetA::lpszContext': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1327): note: see declaration of '_WSAQuerySetA::lpszContext'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(61): warning C4996: '_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQuerySetA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(52): warning C4996: 'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3628): note: see declaration of 'WSALookupServiceBeginA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(58): warning C4996: 'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3679): note: see declaration of 'WSALookupServiceNextA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(104): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(128): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(6369): note: see declaration of 'v8::FunctionTemplate::GetFunction' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(128): error C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(129): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(6369): note: see declaration of 'v8::FunctionTemplate::GetFunction' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(129): error C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(130): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(6369): note: see declaration of 'v8::FunctionTemplate::GetFunction' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(130): error C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(131): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(6369): note: see declaration of 'v8::FunctionTemplate::GetFunction' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(131): error C2661: 'v8::Object::Set': no overloaded function takes 1 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(146): warning C4996: '_WSAQuerySetA::dwSize': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1320): note: see declaration of '_WSAQuerySetA::dwSize'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(147): warning C4996: '_WSAQuerySetA::dwNameSpace': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1325): note: see declaration of '_WSAQuerySetA::dwNameSpace'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(168): warning C4996: '_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQuerySetA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(172): warning C4996: '_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQuerySetA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(180): warning C4473: 'sscanf_s' : not enough arguments passed for format string [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(180): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(180): note: the missing variadic argument 2 is required by format string '%18[^)]'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(180): note: this argument is used as a buffer size
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(185): warning C4996: '_WSAQuerySetA::lpszServiceInstanceName': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1321): note: see declaration of '_WSAQuerySetA::lpszServiceInstanceName'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(151): warning C4996: 'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3628): note: see declaration of 'WSALookupServiceBeginA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(164): warning C4996: 'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3679): note: see declaration of 'WSALookupServiceNextA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(172): warning C4996: 'WSAAddressToStringA': Use WSAAddressToStringW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3507): note: see declaration of 'WSAAddressToStringA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(267): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(270): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(299): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(302): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(336): warning C4996: 'v8::String::Utf8Value::Utf8Value': Use Isolate version [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(3236): note: see declaration of 'v8::String::Utf8Value::Utf8Value'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(378): warning C4996: '_WSAQuerySetA::dwSize': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1320): note: see declaration of '_WSAQuerySetA::dwSize'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(379): warning C4996: '_WSAQuerySetA::dwNameSpace': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1325): note: see declaration of '_WSAQuerySetA::dwNameSpace'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(394): warning C4996: '_WSAQuerySetA::dwOutputFlags': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1333): note: see declaration of '_WSAQuerySetA::dwOutputFlags'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(397): warning C4996: '_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQuerySetA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(401): warning C4996: '_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQuerySetA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(410): warning C4473: 'sscanf_s' : not enough arguments passed for format string [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(410): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(410): note: the missing variadic argument 2 is required by format string '%18[^)]'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(410): note: this argument is used as a buffer size
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(411): warning C4473: 'sscanf_s' : not enough arguments passed for format string [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(411): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(411): note: the missing variadic argument 2 is required by format string '%18[^)]'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(411): note: this argument is used as a buffer size
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(416): warning C4996: '_WSAQuerySetA::lpszServiceInstanceName': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1321): note: see declaration of '_WSAQuerySetA::lpszServiceInstanceName'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(416): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(417): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(428): warning C4996: '_WSAQuerySetA::dwSize': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1320): note: see declaration of '_WSAQuerySetA::dwSize'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(429): warning C4996: '_WSAQuerySetA::lpszContext': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1327): note: see declaration of '_WSAQuerySetA::lpszContext'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(431): warning C4996: '_WSAQuerySetA::lpServiceClassId': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1322): note: see declaration of '_WSAQuerySetA::lpServiceClassId'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(432): warning C4996: '_WSAQuerySetA::dwNameSpace': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1325): note: see declaration of '_WSAQuerySetA::dwNameSpace'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(444): warning C4996: '_WSAQuerySetA::lpcsaBuffer': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1332): note: see declaration of '_WSAQuerySetA::lpcsaBuffer'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(446): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(447): warning C4996: '_WSAQuerySetA::lpszServiceInstanceName': Use WSAQUERYSETW instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(1321): note: see declaration of '_WSAQuerySetA::lpszServiceInstanceName'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(447): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(448): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(477): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(478): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(522): error C2660: 'v8::Function::Call': function does not take 3 arguments [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\users\joaquim.electron-gyp\8.2.5\include\node\v8.h(4399): note: see declaration of 'v8::Function::Call' (compiling source file ..\src\windows\DeviceINQ.cc)
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(385): warning C4996: 'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3628): note: see declaration of 'WSALookupServiceBeginA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(391): warning C4996: 'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3679): note: see declaration of 'WSALookupServiceNextA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(401): warning C4996: 'WSAAddressToStringA': Use WSAAddressToStringW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3507): note: see declaration of 'WSAAddressToStringA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(438): warning C4996: 'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3628): note: see declaration of 'WSALookupServiceBeginA'
c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(442): warning C4996: 'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings [C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\BluetoothSerialPort.vcxproj]
c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\winsock2.h(3679): note: see declaration of 'WSALookupServiceNextA'
win_delay_load_hook.cc
Generating code
All 1 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
Finished generating code
BluetoothSerialPortServer.vcxproj -> C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth\build\Release\BluetoothSerialPortServer.node
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\electron-rebuild\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:193:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\electron-rebuild\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--target=8.2.5" "--arch=x64" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\node-bluetooth
gyp ERR! node -v v11.15.0
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

Failed with exit code: 1
at SafeSubscriber._error (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\spawn-rx\lib\src\index.js:267:84)
at SafeSubscriber.__tryOrUnsub (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\rxjs\internal\Subscriber.js:205:16)
at SafeSubscriber.error (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\rxjs\internal\Subscriber.js:156:26)
at Subscriber._error (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\rxjs\internal\Subscriber.js:92:26)
at Subscriber.error (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\rxjs\internal\Subscriber.js:72:18)
at MapSubscriber.Subscriber._error (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\rxjs\internal\Subscriber.js:92:26)
at MapSubscriber.Subscriber.error (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\rxjs\internal\Subscriber.js:72:18)
at SafeSubscriber._next (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\spawn-rx\lib\src\index.js:242:65)
at SafeSubscriber.__tryOrUnsub (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\rxjs\internal\Subscriber.js:205:16)
at SafeSubscriber.next (C:\Users\Joaquim\Desktop\TempestMASTR-mestre\node_modules\rxjs\internal\Subscriber.js:143:22)

I have been banging my head against this for a week already and have yet to find a working solution. I am new to programming in Electron and Nodejs, so I am probably overlooking something obvious but I would be really thankful if someone could help me out.

TL;DR: I am trying to update the Electron version of a project but npm install/electron rebuild fail due to problems with node-gyp and node-bluetooth.

@bnoordhuis
Copy link
Member

Thanks for the report but you're in the wrong bug tracker.

If you look at the build logs, you'll see error Cxxxx errors - those are compilation failures caused by incompatibilities between the modules you're trying to build and the node runtime you're trying to build them against.

The best advice I can give you is to check on a case-by-case basis what version of what modules works with what version of node/electron.

Take for example this error:

c:\users\joaquim\desktop\tempestmastr-mestre\node_modules\node-bluetooth\src\windows\deviceinq.cc(522): error C2660: 'v8::Function::Call': function does not take 3 arguments

The three arg version of v8::Function::Call() was removed a long time ago so chances are you're either trying to build an old version of node-bluetooth or that module hasn't been updated for newer node versions. Probably the former because node-bluetooth's github repo seems to receive the occasional fix.

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

2 participants