Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: unknown option `hook'

See original GitHub issue

Hello, I am trying to use ‘git commit’ using a husky hook as mentioned in the docs but I get error: unknown option `hook' when husky is trying to run exec < /dev/tty && git cz --hook

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:5

github_iconTop GitHub Comments

vicentelyriocommented, Aug 6, 2019

I had to rerun the commands ./node_modules/.bin/commitizen and ./node_modules/.bin/commitizen init cz-conventional-changelog --save-dev --save-exact

alialaacommented, Aug 5, 2019

@Indimeco Are you sure? I am already using this version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does git commit fail with a sed error? - Stack Overflow
One way you can verify this is to run git commit with -n so that the hooks are bypassed. If it works, then...
Read more >
Commitizen - GitHub Pages
This example shows how to incorporate Commitizen into the existing git commit workflow by using git hooks and the --hook command-line option. This...
Read more >
Set up ESLint, Prettier, Commitizen, Husky and friends in 2022
Step by step setup guide to help you to set up commitizen, ESLint, Prettier and Husky in your front end javascript project in...
Read more >
filehook error with memoir after update texlive 2019 in Oct 15
I got this error: Package filehook Warning: Detected 'scrlfile' package with unknown definition of \InputIfFileExists. The 'force' option of ' ...
Read more >
commander - npm
node split.js -s / --fits a/b/c error: unknown option '--fits' (Did you ... You can add callback hooks to a command for life...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found