Skip to content

fix(husky): switch to npx to fix windows tty issues#30

Open
tegelane89 wants to merge 1 commit into
music-assistant:mainfrom
tegelane89:hotfix/fix-windows-precommit-hook
Open

fix(husky): switch to npx to fix windows tty issues#30
tegelane89 wants to merge 1 commit into
music-assistant:mainfrom
tegelane89:hotfix/fix-windows-precommit-hook

Conversation

@tegelane89

Copy link
Copy Markdown
Contributor

Switch from yarn to npx --no-install to get around "stdin is not a tty" errors in Git Bash/Windows.

@tegelane89 tegelane89 marked this pull request as ready for review March 21, 2026 21:52
@teancom

teancom commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

I'm not a Windows user so I had to do some guessing, but I assume this is about this issue: https://typicode.github.io/husky/troubleshoot.html#yarn-on-windows ? Did you try their suggested approach of exec < /dev/tty in the common.sh file? That would let us keep yarn on windows, and not have an almost-entirely-yarn-except-one-bit-with-npm setup.

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

Successfully merging this pull request may close these issues.

2 participants