@Thomas-Braun
Nein, aber ich wüsste nicht mehr wo sonst. Es soll der globale Pfad zu den npm Modulen angegeben werden. Den kann man mit
npm root -g
Abrufen. Und dabei bekomme ich den genannten zurück.
Hier nochmal ein etwas ausführlicher Auszug aus dem log, ich versuch’s gleich noch etwas leserlicher zu formatieren:
fo instance system.adapter.ham.0 terminated with code 0 (NO_ERROR)
ham.0 2020-10-13 08:53:14.732 info (13119) Terminated (NO_ERROR): Without reason
ham.0 2020-10-13 08:53:14.730 info (13119) terminating
ham.0 2020-10-13 08:53:14.583 info (13119) cleaned everything up...
ham.0 2020-10-13 08:53:14.582 error at checkLocalMode (/opt/iobroker/node_modules/iobroker.ham/main.js:400:25)
ham.0 2020-10-13 08:53:14.582 error at /opt/iobroker/node_modules/iobroker.ham/main.js:203:13
ham.0 2020-10-13 08:53:14.582 error at installAllLibraries (/opt/iobroker/node_modules/iobroker.ham/main.js:381:21)
ham.0 2020-10-13 08:53:14.582 error at /opt/iobroker/node_modules/iobroker.ham/main.js:217:39
ham.0 2020-10-13 08:53:14.582 error at Object.init (/opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js:63:12)
ham.0 2020-10-13 08:53:14.582 error at require (internal/modules/cjs/helpers.js:74:18)
ham.0 2020-10-13 08:53:14.582 error at Module.require (internal/modules/cjs/loader.js:903:19)
ham.0 2020-10-13 08:53:14.582 error at Function.Module._load (/opt/iobroker/node_modules/mock-require/index.js:30:22)
ham.0 2020-10-13 08:53:14.582 error at Function.Module._load (internal/modules/cjs/loader.js:687:27)
ham.0 2020-10-13 08:53:14.582 error at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
ham.0 2020-10-13 08:53:14.582 error - /opt/iobroker/node_modules/iobroker.ham/main.js
ham.0 2020-10-13 08:53:14.582 error - /opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js
ham.0 2020-10-13 08:53:14.582 error Require stack:
ham.0 2020-10-13 08:53:14.582 error (13119) Error: Cannot find module 'usr/local/lib/node_modules/lib/user'
ham.0 2020-10-13 08:53:14.580 error - /opt/iobroker/node_modules/iobroker.ham/main.js
ham.0 2020-10-13 08:53:14.580 error - /opt/iobroker/node_modules/iobroker.ham/lib/global-handler.js
ham.0 2020-10-13 08:53:14.580 error Require stack:
ham.0 2020-10-13 08:53:14.580 error (13119) unhandled promise rejection: Cannot find module 'usr/local/lib/node_modules/lib/user'
Unhandled 2020-10-13 08:53:14.579 error promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
ham.0 2020-10-13 08:53:14.556 info (13119) No additional Libraries to install ...
ham.0 2020-10-13 08:53:14.527 info (13119) starting. Version 3.0.1 in /opt/iobroker/node_modules/iobroker.ham, node: v12.19.0, js-controller: 3.1
Hier die Beschreibung von HAM von GitHub (https://github.com/ioBroker/ioBroker.ham#global-homebridge-mode) :
"Global-Homebridge-Mode
If you already use Homebridge (Apple OpenSource SmartHome) to control your devices then you can use this existing Homebridge installation and start this Homebridge installation as ioBroker process. In this case the Homebridge server is started by ioBroker. Additionally all states from Homebridge are available as states in ioBroker and allows to control from ioBroker.
For this to work you need to provide the location of the systems global node-modules folder. For this call npm root -g. Additionally you need to privide the path of the homebridge configuration directory (usually .homebridge in the users folder)."