Aanchal1103
Aanchal1103

Reputation: 915

Git hooks not generated

I am working on a project that has some git hooks setup using husky. I ran npm install and I can see that husky is installed but the hooks are not generated.

How can I generate the same?

PS I do not have any pre-existing hooks.

Any help would be appreciated.

Upvotes: 1

Views: 845

Answers (1)

Gurjot Saini
Gurjot Saini

Reputation: 64

You can manually trigger hook generation by using node node_modules/husky/husky.js install or node node_modules/husky/bin/install.js for some older versions. Ref: https://github.com/typicode/husky/issues/81

Upvotes: 1

Related Questions