Skip to content

Plugin doesn't work with Node v22 #13

@sothmann

Description

@sothmann

Describe The Bug:
I updated from Node 18 to Node 22, and the plugin stopped working with the following error message (in the Homebridge logs when trying to load the plugin at startup): ERROR LOADING PLUGIN homebridge-rfxcom-accessories:
See more logs below.

After downgrading to Node 20 (v20.19.3), the plugin worked again.

To Reproduce:
Switch to Node v22 and restart homebridge. Check homebridge log.

Expected behavior:
Plugin to load successfully during Homebridge startup.

Logs:

[12:58:39] ERROR LOADING PLUGIN homebridge-rfxcom-accessories:
[12:58:39] Error: Could not locate the bindings file. Tried:
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/build/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/build/Debug/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/build/Release/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/out/Debug/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/Debug/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/out/Release/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/Release/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/build/default/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/compiled/22.17.0/linux/x64/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/addon-build/release/install-root/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/addon-build/debug/install-root/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/addon-build/default/install-root/bindings.node
 → /usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/lib/binding/node-v127-linux-x64/bindings.node
    at bindings (/usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/bindings/bindings.js:126:9)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge-rfxcom-accessories/node_modules/@serialport/bindings/lib/linux.js:2:36)
    at Module._compile (node:internal/modules/cjs/loader:1730:14)
    at Object..js (node:internal/modules/cjs/loader:1895:10)
    at Module.load (node:internal/modules/cjs/loader:1465:32)
    at Function._load (node:internal/modules/cjs/loader:1282:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1487:12)
    at require (node:internal/modules/helpers:135:16)
[15.7.2025, 12:58:39] ====================

Plugin Config:

{
    "name": "RFXCOM",
    "tty": "/dev/ttyUSB0",
    "debug": false,
    "discover": false,
    "devices": {
        "rfy": [
            {
                "name": "omitted",
                "deviceId": "omitted",
                "reversed": false,
                "openDurationSeconds": "10",
                "closeDurationSeconds": "10"
            }
        ]
    },
    "platform": "RFXCOMAccessories"
}

Screenshots:

Environment:

  • Plugin Version: v2.5.0
  • Homebridge Version: v1.11.0
  • Node.js Version: v22
  • NPM Version: 7.15.1
  • Operating System: Ubuntu 22.04.5 LTS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions