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

Postinstall prevents installation as a dependency #147

Closed
srconne opened this issue May 14, 2021 · 2 comments
Closed

Postinstall prevents installation as a dependency #147

srconne opened this issue May 14, 2021 · 2 comments

Comments

@srconne
Copy link

srconne commented May 14, 2021

The package.json specifies a postinstall which initializes husky. Upon an npm install this postinstall step triggers husky which attempts to locate a '.git' folder within the node module. This step fails as it is not a git repo resulting in a failed module installation.
See: typicode/husky#884

@TheMcMurder
Copy link
Contributor

TheMcMurder commented Nov 29, 2021

This should be resolved in 17.0.2-fix.0 and 17.0.2-fix.1

Fixed by this commit

@thescientist13
Copy link

thescientist13 commented Jul 25, 2023

This still seems to be an issue, fwiw

% npm i npm:@esm-bundle/react@latest           
npm ERR! code 127
npm ERR! path /Users/obuckley/Workspace/github/pci-widget-demo/node_modules/@esm-bundle/react
npm ERR! command failed
npm ERR! command sh -c husky install
npm ERR! sh: husky: command not found

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/obuckley/.npm/_logs/2023-07-25T14_42_32_454Z-debug-0.log

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

3 participants