{"action":"closed","issue":{"url":"https://api.github.com/repos/eelcocramer/node-bluetooth-serial-port/issues/182","repository_url":"https://api.github.com/repos/eelcocramer/node-bluetooth-serial-port","labels_url":"https://api.github.com/repos/eelcocramer/node-bluetooth-serial-port/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/eelcocramer/node-bluetooth-serial-port/issues/182/comments","events_url":"https://api.github.com/repos/eelcocramer/node-bluetooth-serial-port/issues/182/events","html_url":"https://github.com/eelcocramer/node-bluetooth-serial-port/issues/182","id":321986272,"number":182,"title":"Windows 10 installation failing with error C2661","user":{"login":"MichaelMauderer","id":1428930,"avatar_url":"https://avatars3.githubusercontent.com/u/1428930?v=4","gravatar_id":"","url":"https://api.github.com/users/MichaelMauderer","html_url":"https://github.com/MichaelMauderer","followers_url":"https://api.github.com/users/MichaelMauderer/followers","following_url":"https://api.github.com/users/MichaelMauderer/following{/other_user}","gists_url":"https://api.github.com/users/MichaelMauderer/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelMauderer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelMauderer/subscriptions","organizations_url":"https://api.github.com/users/MichaelMauderer/orgs","repos_url":"https://api.github.com/users/MichaelMauderer/repos","events_url":"https://api.github.com/users/MichaelMauderer/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelMauderer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-10T16:01:33Z","updated_at":"2018-05-10T18:33:02Z","closed_at":"2018-05-10T18:33:02Z","author_association":"NONE","body":"After running `npm install bluetooth-serial-port` I'm seeing the following error: \r\n\r\n```\r\n..\\src\\windows\\BTSerialPortBinding.cc(188): error C2661: 'v8::Function::NewInstance': no overloaded function takes 2 arguments [C:\\Users\\######>\\Desktop\\######>\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerialPort.vcxproj]\r\n```\r\n\r\n\r\n\r\nThis is the full log [2018-05-10T15_58_29_830Z-debug.log](https://github.com/eelcocramer/node-bluetooth-serial-port/files/1992280/2018-05-10T15_58_29_830Z-debug.log)\r\nThis is he full command line output\r\n\r\n\r\n```\r\nC:\\Users\\######\\Desktop\\######>npm install bluetooth-serial-port\r\n\r\n> bluetooth-serial-port@2.1.6 install C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\r\n> node-gyp configure build\r\n\r\nC:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port>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 )\r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\r\n  BluetoothSerialPort.cc\r\n  DeviceINQ.cc\r\n  BTSerialPortBinding.cc\r\n  BluetoothHelpers.cc\r\n  win_delay_load_hook.cc\r\n..\\src\\windows\\DeviceINQ.cc(104): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerialPort.vcxpr\r\noj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\DeviceINQ.cc(180): warning C4473: 'sscanf_s' : not enough arguments passed for format string [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSeri\r\nalPort.vcxproj]\r\n  ..\\src\\windows\\DeviceINQ.cc(180): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided\r\n  ..\\src\\windows\\DeviceINQ.cc(180): note: the missing variadic argument 2 is required by format string '%18[^)]'\r\n  ..\\src\\windows\\DeviceINQ.cc(180): note: this argument is used as a buffer size\r\n..\\src\\windows\\DeviceINQ.cc(267): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerialPort.vcxpr\r\noj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\DeviceINQ.cc(270): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerialPort.vcxpr\r\noj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\DeviceINQ.cc(299): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerialPort.vcxpr\r\noj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\DeviceINQ.cc(302): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerialPort.vcxpr\r\noj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\DeviceINQ.cc(410): warning C4473: 'sscanf_s' : not enough arguments passed for format string [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSeri\r\nalPort.vcxproj]\r\n  ..\\src\\windows\\DeviceINQ.cc(410): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided\r\n  ..\\src\\windows\\DeviceINQ.cc(410): note: the missing variadic argument 2 is required by format string '%18[^)]'\r\n  ..\\src\\windows\\DeviceINQ.cc(410): note: this argument is used as a buffer size\r\n..\\src\\windows\\DeviceINQ.cc(411): warning C4473: 'sscanf_s' : not enough arguments passed for format string [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSeri\r\nalPort.vcxproj]\r\n  ..\\src\\windows\\DeviceINQ.cc(411): note: placeholders and their parameters expect 2 variadic arguments, but 1 were provided\r\n  ..\\src\\windows\\DeviceINQ.cc(411): note: the missing variadic argument 2 is required by format string '%18[^)]'\r\n  ..\\src\\windows\\DeviceINQ.cc(411): note: this argument is used as a buffer size\r\n..\\src\\windows\\BTSerialPortBinding.cc(65): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerialP\r\nort.vcxproj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\BTSerialPortBinding.cc(74): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerialP\r\nort.vcxproj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\BTSerialPortBinding.cc(125): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerial\r\nPort.vcxproj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\BTSerialPortBinding.cc(188): error C2661: 'v8::Function::NewInstance': no overloaded function takes 2 arguments [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\\r\nbuild\\BluetoothSerialPort.vcxproj]\r\n..\\src\\windows\\BTSerialPortBinding.cc(195): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerial\r\nPort.vcxproj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n..\\src\\windows\\BTSerialPortBinding.cc(351): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\BluetoothSerial\r\nPort.vcxproj]\r\n  C:\\Users\\######\\Desktop\\######\\node_modules\\nan\\nan.h(1618): note: see declaration of 'Nan::Callback::Call'\r\n  win_delay_load_hook.cc\r\n  Generating code\r\n  All 1 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.\r\n  Finished generating code\r\n  BluetoothSerialPortServer.vcxproj -> C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\Release\\\\BluetoothSerialPortServer.node\r\n  BluetoothSerialPortServer.vcxproj -> C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\\build\\Release\\BluetoothSerialPortServer.pdb (Full PDB)\r\ngyp ERR! build error\r\ngyp ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe` failed with exit code: 1\r\ngyp ERR! stack     at ChildProcess.onExit (C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\lib\\build.js:258:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:182:13)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:235:12)\r\ngyp ERR! System Windows_NT 10.0.17134\r\ngyp 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\"\r\ngyp ERR! cwd C:\\Users\\######\\Desktop\\######\\node_modules\\bluetooth-serial-port\r\ngyp ERR! node -v v10.1.0\r\ngyp ERR! node-gyp -v v3.6.2\r\n```\r\n\r\nI have tried running install with both `-msvs_version=2015` and `-msvs_version=2017` as well as specifying `--build-from-source` but this leads to the same error..\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"eelcocramer"}}