C:\Windows\system32>npm install -g --unsafe-perm homebridge homebridge-config-ui-x npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/rc failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yuangezhizao\AppData\Roaming\npm-cache\_logs\2020-04-05T16_38_09_356Z-debug.log
C:\Windows\system32>npm install -g --unsafe-perm homebridge homebridge-config-ui-x npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline? npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation. npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yuangezhizao\AppData\Roaming\npm-cache\_logs\2020-04-05T16_42_43_717Z-debug.log
C:\Windows\system32>npm install -g --unsafe-perm homebridge homebridge-config-ui-x npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yuangezhizao\AppData\Roaming\npm-cache\_logs\2020-04-05T16_46_08_444Z-debug.log
C:\Windows\system32>npm install -g --unsafe-perm homebridge homebridge-config-ui-x npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EAI_AGAIN: request to https://registry.npmjs.org/homebridge-config-ui-x failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation. npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) C:\Users\yuangezhizao\AppData\Roaming\npm\homebridge-config-ui-x -> C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\dist\bin\standalone.js C:\Users\yuangezhizao\AppData\Roaming\npm\hb-service -> C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\dist\bin\hb-service.js C:\Users\yuangezhizao\AppData\Roaming\npm\homebridge -> C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge\bin\homebridge
C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\node_modules\node-pty-prebuilt-multiarch>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\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\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and gyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad gyp ERR! stack network settings. gyp ERR! stack at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:171:21) gyp ERR! stack at Request.emit (events.js:315:20) gyp ERR! stack at Request.onRequestError (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:881:8) gyp ERR! stack at ClientRequest.emit (events.js:315:20) gyp ERR! stack at TLSSocket.socketErrorListener (_http_client.js:432:9) gyp ERR! stack at TLSSocket.emit (events.js:315:20) gyp ERR! stack at emitErrorNT (internal/streams/destroy.js:84:8) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21) gyp ERR! System Windows_NT 10.0.17763 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\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\node_modules\node-pty-prebuilt-multiarch gyp ERR! node -v v13.12.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-pty-prebuilt-multiarch@0.9.0 install: `prebuild-install || node scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-pty-prebuilt-multiarch@0.9.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yuangezhizao\AppData\Roaming\npm-cache\_logs\2020-04-05T16_50_18_623Z-debug.log
C:\Windows\system32>npm config set https-proxy http://127.0.0.1:1081
C:\Windows\system32>npm install -g --unsafe-perm homebridge homebridge-config-ui-x npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) C:\Users\yuangezhizao\AppData\Roaming\npm\homebridge -> C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge\bin\homebridge npm ERR! code EEXIST npm ERR! path C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\dist\bin\standalone.js npm ERR! dest C:\Users\yuangezhizao\AppData\Roaming\npm\homebridge-config-ui-x npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\dist\bin\standalone.js' -> 'C:\Users\yuangezhizao\AppData\Roaming\npm\homebridge-config-ui-x' npm ERR! File exists: C:\Users\yuangezhizao\AppData\Roaming\npm\homebridge-config-ui-x npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yuangezhizao\AppData\Roaming\npm-cache\_logs\2020-04-05T16_55_40_865Z-debug.log
C:\Windows\system32>npm install -g --unsafe-perm homebridge homebridge-config-ui-x --force npm WARN using --force I sure hope you know what you are doing. npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) C:\Users\yuangezhizao\AppData\Roaming\npm\homebridge -> C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge\bin\homebridge C:\Users\yuangezhizao\AppData\Roaming\npm\homebridge-config-ui-x -> C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\dist\bin\standalone.js C:\Users\yuangezhizao\AppData\Roaming\npm\hb-service -> C:\Users\yuangezhizao\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\dist\bin\hb-service.js
C:\Windows\system32>hb-service install i Installing Homebridge Service i Creating Homebridge directory: C:\Users\yuangezhizao\.homebridge i Creating default config.json: C:\Users\yuangezhizao\.homebridge\config.json i Downloading NSSM from https://github.com/oznu/nssm/releases/download/2.24-101-g897c7ad/nssm_x64.exe ^C终止批处理操作吗(Y/N)? Y
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
C:\Windows\system32>hb-service install i Installing Homebridge Service i Starting Homebridge Service... √ Homebridge Started
Manage Homebridge by going to one of the following in your browser:
C:\Windows\system32>npm install homebridge-homeassistant -g npm WARN deprecated homebridge-homeassistant@3.1.0: Home Assistant 0.64 and above features native HomeKit support, use that instead of homebridge-homeassistant. More info: https://bit.ly/2Q8o9nm npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 + homebridge-homeassistant@3.1.0 added 53 packages from 60 contributors in 104.599s
安装之后才发现原来已经不推荐使用了,因为Home Assistant已经内置HomeKit了
草,立即卸载
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Microsoft Windows [版本 10.0.17763.1131] (c) 2018 Microsoft Corporation。保留所有权利。
C:\Windows\system32>hb-service stop i Stopping Homebridge Service... √ Homebridge Stopped
C:\Windows\system32>hb-service uninstall i Removing Homebridge Service i Stopping Homebridge Service... × Failed to stop Homebridge √ Removed Homebridge Service