Skip to content

Fix #1850: Unable to install#1911

Open
danielalanbates wants to merge 1 commit intoanimate-css:mainfrom
danielalanbates:fix/issue-1850
Open

Fix #1850: Unable to install#1911
danielalanbates wants to merge 1 commit intoanimate-css:mainfrom
danielalanbates:fix/issue-1850

Conversation

@danielalanbates
Copy link

Fixes #1850

Summary

This PR addresses: Unable to install

Changes

package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Testing

Please review the changes carefully. The fix was verified against the existing test suite.


This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!

By submitting this pull request, I confirm that my contribution is made under the terms of the project's license (contributor license agreement).

…s own development environment

When end-users run `npm install animate.css`, npm also runs the `prepare`
lifecycle script. The previous `husky install` call fails for consumers
because husky is a devDependency and is not installed in their environment.

Use INIT_CWD (set by npm to the directory where the install was invoked) to
detect whether we are the root project being developed or a dependency being
installed by a consumer, and only run `husky install` in the former case.
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.

Unable to install

1 participant