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

NPM Install Issue #76

Closed
jtenner opened this issue Oct 14, 2013 · 2 comments · May be fixed by #77
Closed

NPM Install Issue #76

jtenner opened this issue Oct 14, 2013 · 2 comments · May be fixed by #77

Comments

@jtenner
Copy link

jtenner commented Oct 14, 2013

Using: Windows 7
Platform: 32/64 bit both confirmed.
Command: npm install pcap -g, npm install pcap
Other things: Tried git pull and manual compilation, to no avail!

Console Output

C:\Users\jtenner\node_modules\pcap>node "C:\Program Files\nodejs\node_modules\np
m\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
  pcap_binding.cc
  pcap_session.cc
..\pcap_binding.cc(5): fatal error C1083: Cannot open include file: 'pcap/pcap.
h': No such file or directory [C:\Users\jtenner\node_modules\pcap\build\pcap_bi
nding.vcxproj]
..\pcap_session.cc(4): fatal error C1083: Cannot open include file: 'pcap/pcap.
h': No such file or directory [C:\Users\jtenner\node_modules\pcap\build\pcap_bi
nding.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `c:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\jtenner\node_modules\pcap
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0

Possible Conclusions...

Looks like it can't find a file it needs.

pcap/pcap.h header is indeed missing from the project. (I opened the folder and indeed it was not there.)

node-gyp

@ujjwalt
Copy link
Collaborator

ujjwalt commented Oct 16, 2013

The file is actually not there but it compiles perfectly on my 10.7.5 OSX and most Linux flavours I guess. Check the referenced PR.

@ujjwalt
Copy link
Collaborator

ujjwalt commented Oct 16, 2013

I'm closing this issue. Further discussion should take place on the issue created by the PR.

@ujjwalt ujjwalt closed this as completed Oct 16, 2013
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

Successfully merging a pull request may close this issue.

2 participants