Skip to content

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

Open
@benny000004

Description

@benny000004

I'm sure that

  • This issue is still present in the current beta version of this adapter
  • There is no other (open) issue with the same topic (use the search!)
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoFurther information is required to act on this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions