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

Install failed node v10 #12

Closed
realdennis opened this issue Jun 13, 2018 · 12 comments
Closed

Install failed node v10 #12

realdennis opened this issue Jun 13, 2018 · 12 comments

Comments

@realdennis
Copy link

$ git clone https://github.com/skepticfx/arpjs
$ cd arpjs/
$ npm install 

--

Build failed in socket_watcher
  CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
../socket_watcher.cpp:77:8: warning: 'MakeCallback' is deprecated
      [-Wdeprecated-declarations]
  Nan::MakeCallback(watcher->handle(), callback, argc, argv);
       ^
../../nan/nan.h:929:3: note: 'MakeCallback' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
  ^
../../nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../socket_watcher.cpp:104:37: error: no matching member function for call to 'NewInstance'
    info.GetReturnValue().Set(cons->NewInstance());
                              ~~~~~~^~~~~~~~~~~

--

Node version: v10.4
NPM version: v6.1.0
Compiler version:
Apple LLVM version 10.0.0 (clang-1000.10.25.5)
Target: x86_64-apple-darwin17.6.0

I found this issue when I install kickthemout, and it depend on arpjs.

I thought the root cause is socketwatcher like this? ?

@roccomuso
Copy link
Collaborator

Yeah, in Node 10 that is deprecated, does it work? those are just warnings.
(if not, try to downgrade your node version).

@realdennis
Copy link
Author

@roccomuso
When I downgrade node version to v6, also build failed cause the node-gyp version. (maybe socketwatcher depend old node-gyp version this issue )

socketwatcher depend on nan@^2.0.9 and nan also depend on node-gyp@~3.6.2, I thought it was a issue chain ...

@realdennis realdennis changed the title Install failed Install failed node v10 Jun 13, 2018
@mkormendy
Copy link

How can we get this working on Node v10?

@roccomuso
Copy link
Collaborator

@mkormendy the workaround doesn't work for you?

@mkormendy
Copy link

mkormendy commented Jul 23, 2018

This error occurs in a repo that uses this package as a dependency. (https://github.com/homespun/homebridge-platform-ring-video-doorbell)

Looks like I'm going to have to fork it and modify the package.json to use a different dependency.

@roccomuso
Copy link
Collaborator

That repo doesn't use arpjs in his dependencies (neither nested ones). Are you sure?

@mkormendy
Copy link

It uses the socketwatcher. I'll have to work around that.

@roccomuso
Copy link
Collaborator

ok, so that should be the place to discuss it. There's already an issue: btrask/node-socketwatcher#18.

@mkormendy
Copy link

Yes, I tracked that issue to this issue - we're cyclical now.

@realdennis
Copy link
Author

@mkormendy Looks socketwatcher no longer maintained, node_pcap change the dependency socketwatcher to this fork.
But in your repo, it depend on pcap2 not node_pcap?

@mkormendy
Copy link

mkormendy commented Aug 8, 2018

Thank you @realdennis!!
I see now that pcap2 is the alias for an unmaintained node-pcap by @andygreenegrass .. which is a fork of the official node_pcap which is still maintained.
I will send a pull-request to the author of the repo that uses node_pcap as it's dependency.

Thanks!

@realdennis
Copy link
Author

@mkormendy Great! 👍

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

3 participants