Open MarvinMH opened 1 year ago
Solved it by myself:
npm install iobroker/adapter-core
added 1 package, and removed 2 packages in 39s
96 packages are looking for funding
run `npm fund` for details
I leave the issue open because I think that the dependency should have been installed automatically (?).
I've followed the advises in https://forum.iobroker.net/topic/64032/update-nodejs-best-practise-supported-16-und-18 to upgrade to nodejs 18. I furthermore upgraded iobroker installation and all adapters. The update was successful and all adapters except echarts are running fine.
This is what happens when I start the adapter:
host.raspberrypi4-iob | 2023-08-19 16:53:20.035 | warn | adapter "echarts" seems to be installed for a different version of Node.js. Trying to rebuild it... 3 attempt -- | -- | -- | -- host.raspberrypi4-iob | 2023-08-19 16:53:20.034 | info | system.adapter.echarts.0 will be rebuilt host.raspberrypi4-iob | 2023-08-19 16:53:20.034 | info | Adapter system.adapter.echarts.0 needs rebuild and will be restarted afterwards. host.raspberrypi4-iob | 2023-08-19 16:53:20.034 | error | instance system.adapter.echarts.0 terminated with code 1 (JS_CONTROLLER_STOPPED) host.raspberrypi4-iob | 2023-08-19 16:53:20.034 | error | Caught by controller[0]: Node.js v18.17.1 host.raspberrypi4-iob | 2023-08-19 16:53:20.033 | error | Caught by controller[0]: } host.raspberrypi4-iob | 2023-08-19 16:53:20.033 | error | Caught by controller[0]: requireStack: [ '/opt/iobroker/node_modules/iobroker.echarts/main.js' ] host.raspberrypi4-iob | 2023-08-19 16:53:20.033 | error | Caught by controller[0]: code: 'MODULE_NOT_FOUND', host.raspberrypi4-iob | 2023-08-19 16:53:20.033 | error | Caught by controller[0]: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) { host.raspberrypi4-iob | 2023-08-19 16:53:20.033 | error | Caught by controller[0]: at Module._load (node:internal/modules/cjs/loader:960:12) host.raspberrypi4-iob | 2023-08-19 16:53:20.033 | error | Caught by controller[0]: at Module.load (node:internal/modules/cjs/loader:1119:32) host.raspberrypi4-iob | 2023-08-19 16:53:20.033 | error | Caught by controller[0]: at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) host.raspberrypi4-iob | 2023-08-19 16:53:20.033 | error | Caught by controller[0]: at Module._compile (node:internal/modules/cjs/loader:1256:14) host.raspberrypi4-iob | 2023-08-19 16:53:20.032 | error | Caught by controller[0]: at Object.It tries to rebuild over and over again without success. I tried the following:
Versions: