Skip to content

Replace node-getopt package with an alternative #3231

@benfrancis

Description

@benfrancis

The node-getopt package is unmaintained and causing errors on the console due to a bug.

2025-12-10 17:19:25.214 ERROR  : zigbee-adapter: (node:413459) [DEP0128] DeprecationWarning: Invalid 'main' field in 'gateway/node_modules/node-getopt/package.json' of './lib'. Please either fix that or report it to the module author
2025-12-10 17:19:25.214 ERROR  : zigbee-adapter: (Use `node --trace-deprecation ...` to show where the warning was created)

I suggest replacing it with something else like minimist, arg, clipanion, yargs or commander.

This library is used in addon-loader.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions