adobe-research / theseus

A pretty darn cool JavaScript debugger for Brackets
Other
1.34k stars 69 forks source link

Cannot include nan.h #56

Closed jfhenriques closed 10 years ago

jfhenriques commented 10 years ago

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 commented 10 years ago

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

alltom commented 10 years ago

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.

jfhenriques commented 10 years ago

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

alltom commented 10 years ago

Excellent :)