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

Cannot include nan.h #56

Closed
jfhenriques opened this issue Apr 13, 2014 · 4 comments
Closed

Cannot include nan.h #56

jfhenriques opened this issue Apr 13, 2014 · 4 comments

Comments

@jfhenriques
Copy link

Hy..

Tried installing node-theseus with "npm install -g node-theseus" on windows 8 but get this compile error

  bufferutil.cc                                                                                                                                                                                                                         
..\src\bufferutil.cc(15): fatal error C1083: Cannot open include file: 'nan.h': No such file or directory [C:\Users\João Henriques\AppData\Roaming\npm\node_modules\node-theseus\node_modules\ws\build\bufferutil.vcxproj]              
  validation.cc                                                                                                                                                                                                                         
..\src\validation.cc(14): fatal error C1083: Cannot open include file: 'nan.h': No such file or directory [C:\Users\João Henriques\AppData\Roaming\npm\node_modules\node-theseus\node_modules\ws\build\validation.vcxproj]              
@jfhenriques
Copy link
Author

Actually this compile error is related to ws dependency.. Still, its preventing me to install node-theseus

@alltom
Copy link
Member

alltom commented Apr 13, 2014

Unfortunately, I know close to nothing about compiling native code on Windows. :(

It looks like it's been reported all over the place. First couple Google results for the error are bug reports on node-xmpp, node-xmpp again, GeoIP, and node-postgres and they have to do with using Node 0.11. Maybe some of those answers can help if you're into fixing things locally to get by? Otherwise, you probably want to report this to ws.

@alltom alltom closed this as completed Apr 13, 2014
@jfhenriques
Copy link
Author

I temporary found a solution. I downloaded nan.h from their repo and placed it inside visual studio's "include" directory.

@alltom
Copy link
Member

alltom commented Apr 13, 2014

Excellent :)

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

2 participants