Skip to content

fix: prevent npm install failure during production installs#10

Open
amitkot wants to merge 2 commits into
badlogic:mainfrom
amitkot:main
Open

fix: prevent npm install failure during production installs#10
amitkot wants to merge 2 commits into
badlogic:mainfrom
amitkot:main

Conversation

@amitkot

@amitkot amitkot commented Jun 14, 2026

Copy link
Copy Markdown

Summary

This PR fixes an issue where npm install --omit=dev fails because the prepare script attempts to execute husky, which is not present in production
environments.

Details

In package.json, the prepare script is currently set to husky. When installing only production dependencies, husky is not installed, leading to a "command
not found" error and halting the installation process.

Changing the script to husky || true allows the installation to succeed in environments where husky is not required.

Impact

  • Enables successful npm install --omit=dev in production/CI environments.
  • Prevents deployment failures in automated pipelines.

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.

1 participant