ioBroker / ioBroker.node-red

Instantiate the server with node-red
Apache License 2.0
52 stars 30 forks source link

Wrong path when adding additional NPM modules? #339

Closed morres83 closed 1 year ago

morres83 commented 1 year ago

Hello,

I was adding an additional packages via Iobroker (e.g. 'ws') like this:

2022-10-27 08_16_09-Window

By saving these settings, the setttings.js file in path /opt/iobroker/iobroker-data/node-red gets modified like this:

2022-10-27 08_20_21-Window

But the path /opt/iobroker/node_modules/iobroker.node-red/node_modules/ does not even exist in the current Iobroker/Node Red installation. Instead, all the modules are saved in /opt/iobroker/iobroker-data/node-red/node_modules

Does Iobroker put the wrong path into the settings.js file?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

mickym2 commented 1 year ago

In my opinion this should be closed - as in standard NodeRed additional modules are always installed in "user" context and not in core installation.