Describe Your Problem:
My problem is two problems really (I think). When trying to install hb-service, it crashes using mkdirs located in the fs-extra folder in homebridge-config-ui-x. (See log 1).
When installing homebridge-config-ui-x I get several warnings related to node version (Log 2). However. I do NOT have node 8 installed. when typing ”node -v” I get 12. I also tried installing version 10 using nvm, but still the installtion script says I have version 8. I’m confused....
Logs:
Log 1
pi@homebridge:/ $ sudo hb-service install --user pi
/usr/lib/node_modules/homebridge-config-ui-x/node_modules/fs-extra/lib/mkdirs/make-dir.js:85
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.
Log 2
pi@homebridge:/ $ sudo npm install -g homebridge-config-ui-x
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
/usr/bin/homebridge-config-ui-x -> /usr/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js/usr/bin/hb-service -> /usr/lib/node_modules/homebridge-config-ui-x/dist/bin/hb-service.js
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10.17.0","homebridge":">=0.4.22"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">= 10.0.0"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=10"} (current: {"node":"8.11.2","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
Environment:
Your nvm setup is causing issues. Remove it and install node as per wiki guides.
https://github.com/homebridge/homebridge/wiki/How-To-Fix-Node.js-Install-Issues-On-Linux
Thanks! worked like a charm :)