The package currently depends on an old version of @azure/identity which in turn depends on an old version of @azure/msal-node that won't install with Node 20.
Console output (using yarn):
> yarn add azure-iothub
yarn add v1.22.19
[1/4] Resolving packages...
warning azure-iothub > @azure/identity > @azure/msal-node@1.18.4: A newer major version of this library is available. Please upgrade to the latest available version.
warning azure-iothub > @azure/identity > @azure/msal-browser@2.38.3: A newer major version of this library is available. Please upgrade to the latest available version.
[2/4] Fetching packages...
error @azure/msal-node@1.18.4: The engine "node" is incompatible with this module. Expected version "10 || 12 || 14 || 16 || 18". Got "20.9.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
The package currently depends on an old version of
@azure/identity
which in turn depends on an old version of@azure/msal-node
that won't install with Node 20.Console output (using yarn):