ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

[Bug]: javascript adapter is installing npm scripts each time at start and often fails

Open benny000004 opened this issue 1 year ago • 1 comments

I'm sure that

  • [X] This issue is still present in the current beta version of this adapter
  • [X] There is no other (open) issue with the same topic (use the search!)
  • [X] This issue is not described in the adapter documentation / FAQ (read the docs!)

Script type

All

The problem

I have three modules in javascript to additionally load (dayjs, moment-parseformat, moment). Each time the adapter starts, it reinstalls the modules. If I do not deactivate the javascript adapter at start of iobroker the install fails (ERRNOTEMPTY shows in the log after some time). Sometimes the whole iobroker instance crashes (and I need to manually delete the node_modules folder in iobroker, install it again via "npm i" and then restart it). When ioBroker starts again, the process starts again. If the modules are installed once - why does it install it again at each start? It takes very, very long that the js adapter can start because the installation takes a few minutes (which I can see via running "htop" in the console).

iobroker.current.log (in debug mode!)

No response

Version of nodejs

20.15

Version of ioBroker js-controller

6.0.6

Version of adapter

8.6.0

benny000004 avatar Jul 11 '24 07:07 benny000004

Please test with the latest beta since that release contains a lot of changes in dependency management:

https://github.com/ioBroker/ioBroker.javascript/releases/tag/v8.7.7

klein0r avatar Aug 04 '24 20:08 klein0r