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

just clone my project repo on my new pc and got bad interpreter error. #1444

Closed
1 task done
Miguerfi opened this issue May 16, 2024 · 4 comments
Closed
1 task done

Comments

@Miguerfi
Copy link

Troubleshoot

If you're migrating from husky 4, see:
https://typicode.github.io/husky/migrate-from-v4.html

Context
Please describe your issue and provide some context:

  • Kitty - Archlinux
  • pre-puush(?)
  • pnpm install

the output:
sh: /home/**/work/1/**/node_modules/.bin/husky: /bin/sh: bad interpreter: Text file busy

@3rd
Copy link

3rd commented May 18, 2024

Hitting this as well on NixOS, seems like it's open for write at the time of execution.
For me it fails on pnpm install, with pnpm v8 and v9, and it used to work before.
With npm install it works fine.
It doesn't seem to come from husky/pnpn, what OS are you on @Miguerfi ?

✗ inotifywait -m node_modules/.bin/husky
Setting up watches.
Watches established.
node_modules/.bin/husky ATTRIB
node_modules/.bin/husky DELETE_SELF

@Miguerfi
Copy link
Author

arch linux(btw).
im using bun now and is wokring fine.

@polyzen
Copy link

polyzen commented May 20, 2024

Can be worked around with export UV_USE_IO_URING=0:
nodejs/node#48444
archlinux/aur@fd50c63

@miguelmota
Copy link

I also randomly experienced the error on node20 using arch linux (btw).

The export UV_USE_IO_URING=0 option did not work for me.

Upgrading to node22 solved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants