Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem when trying to add Prettier's Git Hook: husky install error `install command is deprecated`

node version: 20.11.0 pnpm version: 8.15.0 os: Windows

I was following the instructions in https://prettier.io/docs/en/install.html

  • I ran the second command pnpm exec husky install and
  • cmd gives me an ERROR message "install command is deprecated"

Is there a problem with husky? How to setup prettier git hook?

Thanks for help

like image 809
KJ Ang Avatar asked Sep 05 '25 03:09

KJ Ang


1 Answers

From the husky v9.0.1 changelog

Removed husky install. Use husky or husky some/dir for the same functionality (deprecation notice to be added).

like image 88
Phil Avatar answered Sep 07 '25 20:09

Phil