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

"Error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments" while installing #233

Open
Sv443 opened this issue Feb 28, 2020 · 19 comments

Comments

@Sv443
Copy link

Sv443 commented Feb 28, 2020

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.

@eelcocramer
Copy link
Owner

Node v13 is currently not supported please use v12 with this module.

@Sv443
Copy link
Author

Sv443 commented Mar 5, 2020

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?

@eelcocramer
Copy link
Owner

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.

@jithinjosejacob
Copy link

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

@1pavanb
Copy link

1pavanb commented Nov 16, 2020

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

@dhc-zhuchuanpeng
Copy link

v12.18.3(LTS)

+1

@polartar
Copy link

polartar commented Sep 3, 2021

So does this only work on v12 or 10?

@eelcocramer
Copy link
Owner

See #309

@polartar
Copy link

polartar commented Sep 3, 2021

Thanks, @eelcocramer,

Then How can I fix this issue? I am using Node 16.5.0, and Vue.js
image

@eelcocramer
Copy link
Owner

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.

@polartar
Copy link

polartar commented Sep 3, 2021

Sorry, I can't see any solutions there

@polartar
Copy link

polartar commented Sep 3, 2021

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?

@polartar
Copy link

polartar commented Sep 3, 2021

I tried to install Visual C++ and it's command line tools, but same issue

@eelcocramer
Copy link
Owner

I meant you could try out the fix in the branch.

Working on a fix, please check the next-release branch and let me know if it works (or does not work) for you!

@polartar
Copy link

polartar commented Sep 5, 2021

Why does this need for my work?

@eelcocramer
Copy link
Owner

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.

@polartar
Copy link

polartar commented Sep 5, 2021

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

@eelcocramer
Copy link
Owner

eelcocramer commented Sep 5, 2021

If you think its an issue with gyp you should check with them. I'm sure they will be very supportive...

@charles-dr
Copy link

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!

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

7 participants