vendredi 18 février 2022

when my mac commits code using Git, rejected by Husky, prompt ` sh:command not found `

When my Mac commits code using Git, it gets rejected by Husky, and I see the following error:
git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
.husky/_/husky.sh: line 23: sh: command not found
husky - pre-commit hook exited with code 127 (error)

The Terminal or VSCode also report mistakes.
How can I get past this error?


via Canadian Mac Forums at ehMac https://ift.tt/LR2ErCs

Aucun commentaire:

Enregistrer un commentaire