Pesky Husky

Today on the Gutenberg repo, I tried to commit a small change to an issue template and ran into an error message, shown in a pop-up on VSCode.

Git: .husky/pre-commit: line 2: .husky/_/husky.sh: No such file or directory

The git log didn’t show anything different.

Husky is a tool that helps with linting commits. It needs to be installed locally as well.

The right command is in the package.json file.

To fix it type: npm run prepare

It’s also updated locally when you run npm install, of course.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.