-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Deprecation warning from Husky v9 during npm install #5521
Copy link
Copy link
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
Describe the bug
When running npm install in the repository, Husky prints the following warning:
husky - install command is DEPRECATEDThis 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers