Hi, I'm using node-red inside a nodejs service. (node-red 2.2.2)
I use this code for restart the runtime:
RED.stop()
.then(() => {
RED.init(server,red_settings);
return RED.start();
})
throws this:
8 Jul 09:36:54 - [info] Stopping flows
8 Jul 09:36:54 - [info] Stopped flows
8 Jul 09:36:54 - [info]
Welcome to Node-RED
8 Jul 09:36:54 - [info] Node-RED version: v2.2.2-git
8 Jul 09:36:54 - [info] Node.js version: v16.14.2
8 Jul 09:36:54 - [info] Darwin 21.4.0 arm64 LE
8 Jul 09:36:54 - [info] Loading palette nodes
ypeError: Cannot read properties of undefined (reading 'version')
at Object.getModuleInfo (/service/node_modules/@node-red/registry/lib/registry.js:378:44)
at loadModuleFiles (/service/node_modules/@node-red/registry/lib/loader.js:116:51)
at load (/service/node_modules/@node-red/registry/lib/loader.js:43:12)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
thanks