Azure / Azure/azure-iot-sdk-node

Node 22 support for azure-iot-security-tpm

Open
#1,231 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
268
Forks
228
PR merge metrics
No merged PRs in 30d

Description

## Context

- **OS and version used:** Debian BookWorm 12 (Docker)
- **Node.js version:** 22
- **npm version:** 10.9.2

## Description of the issue

Unable to install package _azure-iot-security-tpm_ for node version 22.

As per this GitHub issue https://github.com/nodejs/node/issues/52240, ff-napi broke after node version 20.11.1. It appears there is a dependency chain like azure-iot-security-tpm → tss.js → ff-napi. Related: https://github.com/Azure/azure-iot-sdk-node/issues/930#issuecomment-806235417

## Code sample exhibiting the issue

Using docker for a quick and consistent repro. Otherwise docker don't have any relation to this issue.

```bash
docker run --rm -w /tmp node:22 npm i azure-iot-security-tpm
```

## Console log of the issue

![Image](https://github.com/user-attachments/assets/074eb737-5a79-4276-8067-b7ececa82b0a)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.