Closed holomekc closed 6 months ago
Which adapter version is used? Please provide more information
Node: 18.19.0 Npm: 10.2.3 Iobroker: 5.x (i cannot see it right now on my iPhone) Node-red adapter: 4.0.3
This seems to work: https://github.com/ioBroker/ioBroker.node-red/blob/b6d11f2e9af75c39acb0a258d1fe0a4760517040/main.js#L313-L321
for (let a = 0; a < additional.length; a++) {
if (additional[a].startsWith('node-red-') || additional[a].startsWith('@node-red-')) {
continue;
}
npms += ` "${additional[a]}": require("${dir}${additional[a]}")`;
if (a !== additional.length - 1) {
npms += ', \r\n';
}
}
Not sure what implications this might have though. The code changed in 5.x, but I think logically it is the same except the linebreaks.
Adding for example the following module to the instance configuration: @node-red-contrib-themes/theme-collection
fails with:
Logs are set to "All"