typicode / husky-4-to-8

Quickly migrate your hooks from husky v4 to husky@latest
MIT License
131 stars 20 forks source link

Fails if using zsh shell #3

Closed eschaefer closed 3 years ago

eschaefer commented 3 years ago

Using OS X Catalina...

$ npx github:typicode/husky-4-to-5#main --package-manager yarn
zsh: no matches found: github:typicode/husky-4-to-5#main
typicode commented 3 years ago

What's your version of npx?

josokinas commented 3 years ago

Same issue, using zsh and npx v7.5.2.

eschaefer commented 3 years ago

@typicode my npx is at version 6.14.8

NetOpWibby commented 3 years ago

Using 7.5.3 here and npm rather than yarn.

kylemh commented 3 years ago

I use zsh and did not have this issue for reference.

typicode commented 3 years ago

Tried today with npm v7.5.4 and npm exec -- github:typicode/husky-4-to-5 --package-manager npm. Seems to work.

josokinas commented 3 years ago

Forgot to mention I'm using macOS Big Sur - maybe macOS is an issue here?

kylemh commented 3 years ago

Using Big Sur + zsh with no issue. Not denying you have an issue, just tryna help isolate the real problem.

typicode commented 3 years ago

I had issues with npx ... command but it worked with npm exec -- github:typicode/husky-4-to-5 (npm v7.6.0).

Might be worth giving another try.

Alternatively, if you don't have a lot of repos and/or hooks, you could move your previous config manually. A new command husky init have also been introduced to simplify setup.

https://typicode.github.io/husky