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 install on Windows: node.h, v8.h missing #1804

Closed
i3laze opened this issue Apr 4, 2018 · 1 comment
Closed

Cannot install on Windows: node.h, v8.h missing #1804

i3laze opened this issue Apr 4, 2018 · 1 comment

Comments

@i3laze
Copy link

i3laze commented Apr 4, 2018

I'm using the Wiki manual to install it on Windows Server 2012R2.
NodeJS v8.11.1 x64

On the latest step ‘npm install -g homebridge‘ I got lot's of similar errors:
"Cannot open include file: 'node.h': No such file or directory".
What step of the Wiki could I mess?

Google tells me an error is a common one: nodejs/node-gyp#519

C:\Users\Администратор>npm install -g homebridge
C:\Users\Администратор\AppData\Roaming\npm\homebridge -> C:\Users\Администратор\
AppData\Roaming\npm\node_modules\homebridge\bin\homebridge

> mdns@2.3.4 install C:\Users\Администратор\AppData\Roaming\npm\node_modules\hom
ebridge\node_modules\mdns
> node-gyp rebuild


C:\Users\Администратор\AppData\Roaming\npm\node_modules\homebridge\node_modules\
mdns>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modu
les\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin
\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\no
de_modules\node-gyp\bin\node-gyp.js" rebuild )
Сборка проектов в этом решении по одному. Чтобы включить параллельную сборку, до
бавьте параметр "/m".
  dns_sd.cpp
  dns_service_browse.cpp
  dns_service_enumerate_domains.cpp
  dns_service_get_addr_info.cpp
c:\users\администратор\appdata\roaming\npm\node_modules\homebridge\node_modules
\mdns\src\mdns.hpp(11): fatal error C1083: Cannot open include file: 'node.h':
No such file or directory (compiling source file ..\src\dns_sd.cpp) [C:\Users\А
дминистратор\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\buil
d\dns_sd_bindings.vcxproj]
  dns_service_process_result.cpp
c:\users\администратор\appdata\roaming\npm\node_modules\homebridge\node_modules
\mdns\src\mdns.hpp(11): fatal error C1083: Cannot open include file: 'node.h':
No such file or directory (compiling source file ..\src\dns_service_browse.cpp)
 [C:\Users\Администратор\AppData\Roaming\npm\node_modules\homebridge\node_modul
es\mdns\build\dns_sd_bindings.vcxproj]
c:\users\администратор\appdata\roaming\npm\node_modules\homebridge\node_modules
\mdns\src\mdns.hpp(11): fatal error C1083: Cannot open include file: 'node.h':
No such file or directory (compiling source file ..\src\dns_service_enumerate_d
omains.cpp) [C:\Users\Администратор\AppData\Roaming\npm\node_modules\homebridge
\node_modules\mdns\build\dns_sd_bindings.vcxproj]
  dns_service_ref.cpp
@i3laze
Copy link
Author

i3laze commented May 2, 2018

Damn, that's node-gyp still not supporting nonLatin user profiles. Got this fixed this way:
nodejs/node-gyp#297 (comment)

I've also configured HomeBridge as NT-Service using NSSM.exe with following parameters:
Path: C:\Program Files\nodejs\node.exe
Startup dir: C:\Users\UserName\.homebridge
Arguments: C:\Users\UserName\AppData\Local\npm\node_modules\homebridge\bin\homebridge

@i3laze i3laze closed this as completed May 18, 2018
@i3laze i3laze changed the title Cannot install on Windows 8.1, node.h missing Cannot install on Windows: node.h, v8.h missing May 18, 2018
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

1 participant