node_pcap icon indicating copy to clipboard operation
node_pcap copied to clipboard

Installation Issue using npm post v 10.35

Open vigneshshanmugam opened this issue 11 years ago • 13 comments

OSX 10.9.4 Node Version - 0.11.4

http://pastebin.com/1VemNhU9

Works fine on Node stable (0.10.35)

vigneshshanmugam avatar Jan 20 '15 12:01 vigneshshanmugam

same problem here, on v0.12.0, is impossibile to install or do somthing. http://pastebin.com/EuzhQMTw

SoulRaven avatar Feb 09 '15 16:02 SoulRaven

Can you try to install the github version instead:

npm install mranney/node_pcap

zerouid avatar Feb 11 '15 03:02 zerouid

try to install github versio, but still fail http://pastebin.com/ZyJm45Nv

SoulRaven avatar Feb 20 '15 13:02 SoulRaven

Successfully building on both 0.11 and 0.12 in CI environment node 0.11.16: https://travis-ci.org/jmaxxz/node_pcap/jobs/51467642 node 0.12.0 : https://travis-ci.org/jmaxxz/node_pcap/jobs/51467641

Try this:

git clone [email protected]:mranney/node_pcap.git
cd node_pcap
npm install

jmaxxz avatar Feb 20 '15 13:02 jmaxxz

fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

SoulRaven avatar Feb 20 '15 13:02 SoulRaven

Ok try the http endpoint instead

git clone https://github.com/mranney/node_pcap.git
cd node_pcap
npm install

jmaxxz avatar Feb 20 '15 14:02 jmaxxz

now :))

module.js:338 throw err; ^ Error: Cannot find module './build/Release/pcap_binding' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (/usr/local/nodeCapture/node_modules/node_pcap/pcap.js:3:21)

SoulRaven avatar Feb 20 '15 14:02 SoulRaven

And you have libpcap w/headers installed?

sudo apt-get install libpcap-dev

jmaxxz avatar Feb 20 '15 14:02 jmaxxz

yes, is installed, still the same error

SoulRaven avatar Feb 20 '15 14:02 SoulRaven

Well, I am just about out of ideas. Will let you know if I think of anything else.

jmaxxz avatar Feb 20 '15 14:02 jmaxxz

the problem is that after npm install inside the node_pcap, no path is created build/Release/pcap_binding

SoulRaven avatar Feb 20 '15 14:02 SoulRaven

What if you mkdir that manually?

jmaxxz avatar Feb 20 '15 15:02 jmaxxz

This is the only install that worked for me on Ubutu 14.04, node 0.12.2

git clone https://github.com/mranney/node_pcap.git
cd node_pcap
sudo npm install

Note:

npm install pcap
npm install mranney/node_pcap

failed.

tecfu avatar Apr 02 '15 06:04 tecfu