Skip to content

actions/setup-node@v4 with lts/Jod to run npm ci has error libusb.h: No such file or directory #1252

Closed
@hui-an-yang

Description

@hui-an-yang

Description:
actions/setup-node@v4 with node-version: lts/Jod when running npm ci has error ../hidapi/libusb/hid.c:47:10: fatal error: libusb.h: No such file or directory

It seems a actions/setup-node@v4 + lts/Jod specific issue, where the same script using actions/setup-node@v4 with LTS/Hydrogen or LTS/Iron has no issue at all when running npm ci.
I also git clone a fresh repo and use node lts/Jod and npm 10.9.2 to npm ci locally successfully made me suspect the problem might be the dependency we used in ci actions/setup-node@v4 with lts/Jod.

Action version:
actions/setup-node@v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
node: v22.14.0
npm: 10.9.2
yarn: 1.22.22

Repro steps:
this is the pr ci run failing https://github.com/ecadlabs/taquito/actions/runs/13660020634/job/38199771668?pr=3117
this is the ci script https://github.com/ecadlabs/taquito/blob/master/.github/workflows/main.yml

Expected behavior:
expect using actions/setup-node@v4 with node-version: lts/Jod to npm ci to run just like actions/setup-node@v4 with node-version: LTS/Iron as screenshot
Image

Actual behavior:
Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions