-
Notifications
You must be signed in to change notification settings - Fork 256
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
npm install pcap
fails (node v5.4.1, npm 3.5.3)
#196
Comments
Also failed on node v4.2.4, npm v2.14.12, Ubuntu 14.04.3 LTS I'm digging deeper into socketwatcher. Could be related to #70 or btrask/node-socketwatcher#8. |
Looks like commit 29737ce moved socketwatcher from a forked-fork (https://github.com/zerouid/node-socketwatcher) which is where the 0.2.1 came from. The weirdest part is that it feels like this all worked last week... |
This feels like a duplicate of #192. @rgrannell1, do you agree? |
Yes @ecaron, it seems to be the same issue; I would have commented under that issue but I had only read the post, not responses to it. Just to note, the workaround suggested of using:
fails with the following error:
The error warns about a missing header file |
for the pcap.h error install libpcap-dev. Then installing via git works. npm install pcap still fails with various compile errors in socket_watcher.cpp http://pastebin.com/MGvhYkrm The issue is resolved by this edit that changes socketwatcher dependency url from some branched git (that perhaps resolved a compile issue from the past) back to the central socketwatcher repository: |
I have the same issue, did you find solution/workaround? |
Currently I updated all my code to whatever format is being used almost recently and I'm installing via the commit hash I linked to. https://github.com/cyphunk/snifferjs/blob/master/package.json#L13 With that |
This is what worked for me as a full install (including nodejs):
I'm on Ubuntu 15.10. Hope it helps someone. |
like @cyphunk said,
on Arch Linux ,node v 4.4.4 npm 2.15.1
then
it works,Hope it helps someone |
OS X El Capitan however |
fails on mac still. |
@chovy Install worked for me with |
Centos 6.4 |
Why is this still an issue over a year later? Is this project dead? |
@killerspaz It appears to be. I wanted to use arpjs, but it has this failed dependency. |
Installing libpcap-dev worked for me.
|
thank you @ebilling, it worked for me too. |
Hi Had issues with installing pcap and |
ubuntu 16.04.1 works |
what about windows? |
CentOS 7
|
centos 7 |
git clone git://github.com/mranney/node_pcap.git copy WpdPack\Include and WpdPack\Lib folder to node_pcap change bindings.gyp as below { modify pcap_session.cc like below; mark lines as comment from 212 to 220
change include part, I dont remember some header file as below. change line number 343 as below chane line number 405 as below finally C:\DEV\CaptureJS\node_pcap>node-gyp configure build -arch=x64 C:\DEV\CaptureJS\node_pcap>node-gyp install C:\DEV\CaptureJS\node_pcap> but it doesn't work. |
windows is definitely not supported for now, see #249 (comment). this should be closed |
I tried running both of these commands:
The error is caused by node-gyp trying to build a non-existing dependency
socketwatcher@0.2.1
, which isn't listed as an available version bynpm view socketwatcher
( available versions:0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0
).I'm eager to try out this library; are there any workarounds I can use to get around this install problem?
Environment:
Attached:
npm-debug.txt
The text was updated successfully, but these errors were encountered: