"Error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments" while installing
I'm trying to install this package with npm i bluetooth-serial-port and after switching from Python 3 to 2.7 (since it threw another error) it has been throwing me this new error a few times while installing:
Error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments
This error is happening while node-gyp is building the BluetoothSerialPort project.
There's also a bunch of warnings.
Here's the full error log.
OS: Windows 10 (1909 - Build 18363.657)
Node.js version: 13.9.0
NPM version: 6.13.7
Python version: 2.7.16
I also have Visual Studio 2019 and its SDKs.
Node v13 is currently not supported please use v12 with this module.
Node v13 is currently not supported please use v12 with this module.
Okay well I'm glad there's at least a temporary workaround to it. Although with the new V8 version 8 update coming to Node soon I'd want to be able to switch to v13 entirely, not having some projects require NVM. Would it be possible to update the package to support Node 13 in the near future?
It is possible to update the package and add node 13 support but I do not have plans to add this myself.
I'm happy to accept a PR that adds support though.
I faced the same issue today while using Node v13 in Azure Pipelines, npm install failed with same error.I had to used Node version 12.16.1 to resolve this
I got this error when I execute yarn on Windows
What the hell is this?? I tried windows build tools 2019, 2017, 2015 node 14.15.1(LTS), 12.19.1(LTS) 12.16.1(LTS)
nothing worked. When changed to v10.23.0(LTS) started working
v12.18.3(LTS)
+1
So does this only work on v12 or 10?
See #309
Thanks, @eelcocramer,
Then How can I fix this issue? I am using Node 16.5.0, and Vue.js

You may try the fix in the branch mentioned in #309. It would be great if you can provide feedback wether that works or not. CI suggest that the fix in that branch builds on windows.
Sorry, I can't see any solutions there
Did you mean these?
- Needs Visual Studio (Visual C++) and its command line tools installed.
- Needs Python 2.x installed and accessible from the command line path. I installed Python 3.8, should I remove it?
I tried to install Visual C++ and it's command line tools, but same issue
I meant you could try out the fix in the branch.
Working on a fix, please check the
next-releasebranch and let me know if it works (or does not work) for you!
Why does this need for my work?
I'm not sure I understand your question.
The current version of the module does not compile against newer versions of nodejs. The patch in the branch does compile. I'm just not sure wether it is functionally ok so I'm reaching out to the community to validate that branch.
In that branch, you are going to install bluetooth-serial-port library, but I am not using it. The gyp error is a common issue in Node 14 and 16. If I use Node 12, it is working. So my question is about how we can fix gyp error on Node 14 and 16
If you think its an issue with gyp you should check with them. I'm sure they will be very supportive...
I faced the same issue today while using Node v13 in Azure Pipelines, npm install failed with same error.I had to used Node version 12.16.1 to resolve this
Thanks, it worked for me!