Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
hui-an-yang opened this issue Mar 13, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@hui-an-yang
Copy link

hui-an-yang commented Mar 13, 2025

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

@aparnajyothi-y
Copy link
Contributor

Hello @hui-an-yang, Thank you for creating this issue and we will look into it :)

@lmvysakh lmvysakh self-assigned this Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants