Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix git hook error after dependency installation #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RiccardoBiosas
Copy link

@RiccardoBiosas RiccardoBiosas commented May 22, 2024

Husky is currently set to run in a nested directory that is not at the same level as the .git directory. it's a known error (see here and here) and it was causing the installation process to terminate with Exit status 1 as in the below logs:

> husky install

.git can't be found (see https://git.io/Jc3F9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepare: `husky install`
npm ERR! Exit status 1

This PR fixes the issue by running the prepare command from the same level as the .git directory

@RiccardoBiosas RiccardoBiosas requested a review from a team as a code owner May 22, 2024 03:21
Copy link

atlassian-cla-bot bot commented May 22, 2024

Hooray! All contributors have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants