Deprecation warning from Husky v9 during npm install
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:
- Clone the repository:
git clone https://github.com/block/goose.git - Navigate to the project root:
cd goose/ui/desktop - Run
npm install - 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.