sh: husky: command not found

See original GitHub issue

I got postinstall issue with husky with the newest version. I guess it should be npx husky install ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
mikehardycommented, Mar 10, 2021

@MoOx - I did not (yet) - we already use that hook but I wanted to read up on it more. Thanks for the positive confirmation that it works well for you. I didn’t want to leave the busted version out there for one second longer than necessary though so queued the “real fix” behind the “get it working immediately” fix 😃

1reaction
MoOxcommented, Mar 10, 2021

@mikehardy did you try to use prepare instead of postinstall? that’s what I am using on all my projects.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sh: husky: command not found - node.js - Stack Overflow
Temporarily remove the "prepare": "husky install" script from the package.json file. Run npm i ( npm install ). Dependencies installed ...
Read more >
sh: husky: command not found · Issue #945 - GitHub
Context I've setup a node project with husky but when my collegue tries to run npm install on his Mac he gets the...
Read more >
husky: command not found with npm install --production
Recently, while attempting to build a Docker container, I ran into a bit of a dilemma. Upon running npm install --production I was...
Read more >
Husky - Git hooks
Command not found ... If you're running Git from an app and the command can be found in your terminal, this means that...
Read more >
husky - npm
Start using husky in your project by running `npm i husky`. There are 2595 other projects in the npm registry using husky.
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found