Homebridge install fails on Windows 10

Post Reply
raf1975
Posts: 16
Joined: Tuesday 02 February 2016 16:36
Target OS: Raspberry Pi
Domoticz version:
Contact:

Homebridge install fails on Windows 10

Post by raf1975 » Monday 26 December 2016 16:18

Hi,

I've been struggling with Homebridge install on Windows 10.
When issuing npm install -g homebridge, I got the following errors:

Code: Select all

C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  dns_sd.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_browse.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_enumerate_domains.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_get_addr_info.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_process_result.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_ref.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_ref_deallocate.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_ref_sock_fd.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_register.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_resolve.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  dns_service_update_record.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  mdns_utils.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  network_interface.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  socket_watcher.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  txt_record_ref.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  txt_record_create.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  txt_record_deallocate.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  txt_record_set_value.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  txt_record_get_length.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
  txt_record_buffer_to_object.cpp
C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h(31): fatal error C1083: Cannot open include file: 'ctype.h':
 No such file or directory [C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns\build\dns_sd_b
indings.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\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:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\rafal\AppData\Roaming\npm\node_modules\homebridge\node_modules\mdns
gyp ERR! node -v v6.3.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
C:\Users\rafal\AppData\Roaming\npm
`-- (empty)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "homebridge"
npm ERR! node v6.3.1
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mdns package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs mdns
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls mdns
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\rafal\npm-debug.log
npm ERR! code 1
Any one could help, please?

Thanks,

rafi

Post Reply

Who is online

Users browsing this forum: dbartholo and 3 guests