typicode / husky

Git hooks made easy 🐶 woof!
https://typicode.github.io/husky
MIT License
31.69k stars 996 forks source link

Husky 9 - cannot execute binary file #1426

Open pabloimrik17 opened 3 weeks ago

pabloimrik17 commented 3 weeks ago

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: Fresh install with pnpm 8 and husky 9.

Just created the basic pre-commit hook from the docs (npm test) and when the hook runs i get this error

.husky/pre-commit: .husky/pre-commit: cannot execute binary file husky - pre-commit script failed (code 126)