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
Regards,
Daniel