goose icon indicating copy to clipboard operation
goose copied to clipboard

Deprecation warning from Husky v9 during npm install

Open sheikhlimon opened this issue 1 month ago • 0 comments

Describe the bug When running npm install in the repository, Husky prints the following warning:

husky - install command is DEPRECATED

This happens because the prepare script in package.json currently uses the old format:

"prepare": "cd ../.. && husky install"

Husky v9 no longer requires cd ../.. && husky install — the recommended format is simply:

"prepare": "husky"

To Reproduce Steps to reproduce the behavior:

  1. Clone the repository: git clone https://github.com/block/goose.git
  2. Navigate to the project root: cd goose/ui/desktop
  3. Run npm install
  4. Observe the warning about husky - install command is DEPRECATED

Expected behavior Husky hooks should be installed without any deprecation warnings.

Screenshots N/A (the warning is printed in the terminal)

Please provide following information:

  • OS & Arch: [Omarchy 3.1.4]
  • Interface: [CLI]
  • Version: [e.g. v1.0.2]
  • Extensions enabled: [N/A]
  • Provider & Model: [N/A]

Additional context Updating the prepare script in package.json to the modern Husky v9 format ("prepare": "husky") should fix the issue. This change would remove the deprecation warning and correctly set up pre-commit hooks.

sheikhlimon avatar Nov 01 '25 07:11 sheikhlimon