mnot / htracr

HTTP sniffing and low-level visualisation
MIT License
531 stars 37 forks source link

NPM install didn't get pcap dependancy #4

Closed magicmonkey closed 13 years ago

magicmonkey commented 13 years ago

I installed htracr using "npm install htracr" and got version 0.1.1, but got an error on running it:

node.js:50
    throw e; // process.nextTick error, or 'error' event on first tick
    ^
Error: Cannot find module './build/default/pcap_binding'
    at resolveModuleFilename (node.js:246:13)
    at loadModule (node.js:212:20)
    at require (node.js:272:14)
    at Object.<anonymous> (/usr/local/lib/node/.npm/pcap/0.2.6/package/pcap.js:7:18)
    at Module._compile (node.js:329:23)
    at Object..js (node.js:337:12)
    at Module.load (node.js:260:25)
    at loadModule (node.js:232:12)
    at require (node.js:272:14)
    at Object.<anonymous> (/usr/local/lib/node/.npm/htracr/0.1.1/dependencies/pcap/index.js:8:18)

I ran "npm install pcap" and it fixed it, so I suspect there's a dependancy missing in NPM?

mnot commented 13 years ago

That looks like a node_pcap install issue; the dependency is in htracr, and if it wasn't picked up at all, the error would be for 'pcap' (what htracr require()s) not 'pcap_binding'.

Cheers

magicmonkey commented 13 years ago

OK cheers, I'll chase it upstream.