husky icon indicating copy to clipboard operation
husky copied to clipboard

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

Open m1guer opened this issue 1 year ago • 3 comments
trafficstars

Troubleshoot

  • [X] Before creating an issue, please check: https://typicode.github.io/husky/troubleshoot.html

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

m1guer avatar May 16 '24 14:05 m1guer

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

3rd avatar May 18 '24 17:05 3rd

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

m1guer avatar May 18 '24 18:05 m1guer

Can be worked around with export UV_USE_IO_URING=0: https://github.com/nodejs/node/issues/48444 https://github.com/archlinux/aur/commit/fd50c6372e78fe518b35fd5afd0f9ba786a80d02

polyzen avatar May 20 '24 23:05 polyzen

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.

miguelmota avatar May 21 '24 21:05 miguelmota