[solved] Update of node-red-contrib-modbus

Hi all,

after having some issues updating home assistant and the node-red addon to 11.0.3 node-red-contrib-modbus stopped working. I found the solution quite quickly and want to document it here…

My Home Assistant is running on x86_64 and it seems, that there is no binary package of some node-module dependencies available that are required for this node. Therefore, it is built by gyp but failing in my add-on.

Adding the following to my node-red add-on configuration worked:

npm_packages:
  - serialport
system_packages:
  - make
  - gcc
  - g++
  - linux-headers

Unfortunately, the build dependencies are quite large (>300MB).

If you need to find the system packages, a missing file belongs to, have a look at:
https://pkgs.alpinelinux.org/contents

There you can easily serach for files and it will give you the package it belongs to. Then add the package to the add-on configuration entry.

Hope somebody stumbling over this problem finds this thread and helps fix the issues :slight_smile:

Regards,
Daniel

2 Likes

That helped me a lot. Thank you!

In my case, I also needed to add python3 to system_packages.