Skip to content

Deprecation warning from Husky v9 during npm install #5521

@sheikhlimon

Description

@sheikhlimon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions