actions/setup-node@v4 with lts/Jod to run npm ci has error libusb.h: No such file or directory #1252
Open
1 of 5 tasks
Labels
bug
Something isn't working
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:
Runner type:
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
Actual behavior:

The text was updated successfully, but these errors were encountered: