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

Install error: 'husky: command not found' #4

Open
ihoskovecpetr opened this issue Jul 17, 2023 · 2 comments
Open

Install error: 'husky: command not found' #4

ihoskovecpetr opened this issue Jul 17, 2023 · 2 comments

Comments

@ihoskovecpetr
Copy link

ihoskovecpetr commented Jul 17, 2023

Hi, thank you for your great work.
I have just attempted to install this library (version 1.0.4 and newer) and got following error:

error /.../node_modules/ruls: Command failed.
Exit code: 127
Command: husky install
Arguments: 
Directory: /.../node_modules/ruls
Output:
/bin/sh: husky: command not found
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. 

Seem there is problem with postinstal hook "postinstall": "husky install", which should not run in production but runs.
By removing this hook, everything works as intended.

Thank you in advance for fixing this issue.

@parweb
Copy link

parweb commented Oct 17, 2023

same for me version [email protected]
I use a monorepo structure where .git is in the root

error /app/packages/back-end/node_modules/ruls: Command failed.
Exit code: 1
Command: husky install
Arguments:
Directory: /app/packages/back-end/node_modules/ruls

@parweb
Copy link

parweb commented Nov 14, 2023

any progress on this ?

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

No branches or pull requests

2 participants